blob: f8161752e3b45d9e1d77ff6b918e8e15095727d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
/*
main.cpp
An example of a main window application that used a subclassed model
and view to display data from sound files.
*/
#include <QApplication>
#include "model.h"
#include "view.h"
#include "window.h"
/*!
The main function for the linear model example. This creates and
populates a model with long integers then displays the contents of the
model using a QListView widget.
*/
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MainWindow *window = new MainWindow;
window->show();
return app.exec();
}
|