Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4/*
5 main.cpp
6
7 A simple example that shows how selections can be used directly on a model.
8 It shows the result of some selections made using a table view.
9*/
10
11#include <QApplication>
12
13#include "window.h"
14
15int main(int argc, char *argv[])
16{
17 QApplication app(argc, argv);
19 window->show();
20 window->resize(640, 480);
21 return app.exec();
22}
The QApplication class manages the GUI application's control flow and main settings.
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
The QMainWindow class provides a main application window.
Definition qmainwindow.h:25
int main()
[0]
QApplication app(argc, argv)
[0]
aWidget window() -> setWindowTitle("New Window Title")
[2]
MainWindow()
Definition whatsthis.cpp:14