Qt 5.10 Book Examples
main.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // main.cpp
3 // ======================================================================
4 // This file is a part of the book
5 // "Qt 5.10 Professional programming with C++"
6 // http://qt-book.com
7 // ======================================================================
8 // Copyright (c) 2017 by Max Schlee
9 // ======================================================================
10 
11 #include <QApplication>
12 #include "Widget.h"
13 
14 // ----------------------------------------------------------------------
15 int main(int argc, char* argv[])
16 {
17  QApplication app(argc, argv);
18  Widget wgt1;
19  Widget wgt2;
20 
21  wgt1.setWindowTitle("Widget1");
22  wgt1.setObjectName("Widget1");
23  wgt1.resize(200, 200);
24  wgt1.show();
25 
26  wgt2.setWindowTitle("Widget2");
27  wgt2.setObjectName("Widget2");
28  wgt2.resize(200, 200);
29  wgt2.show();
30 
31  return app.exec();
32 }
int main(int argc, char **argv)
Definition: main.cpp:15
Definition: Widget.h:17