Qt
6.x
The Qt SDK
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
#include <QtGui>
5
6
#include "
mainwindow.h
"
7
8
int
main
(
int
argc,
char
*argv[])
9
{
10
QApplication
app
(argc, argv);
11
MainWindow
*window1 =
new
MainWindow
;
12
MainWindow
*window2 =
new
MainWindow
;
13
window1->
show
();
14
window2->
show
();
15
return
app
.
exec
();
16
}
MainWindow
[5]
Definition
src_corelib_kernel_qobject.cpp:52
QApplication
The QApplication class manages the GUI application's control flow and main settings.
Definition
qapplication.h:32
QApplication::exec
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
Definition
qapplication.cpp:2564
QWidget::show
void show()
Shows the widget and its child widgets.
Definition
qwidget.cpp:7956
main
int main()
[0]
Definition
doc_src_objecttrees.cpp:5
app
QApplication app(argc, argv)
[0]
mainwindow.h
qtbase
src
gui
doc
snippets
draganddrop
main.cpp
Generated by
1.9.7