main.cpp
Go to the documentation of this file.
1 
8 /*****************************************************************************
9 ** Includes
10 *****************************************************************************/
11 
12 #include <QtGui>
13 #include <QApplication>
14 #include "../include/%(package)s/main_window.hpp"
15 
16 /*****************************************************************************
17 ** Main
18 *****************************************************************************/
19 
20 int main(int argc, char **argv) {
21 
22  /*********************
23  ** Qt
24  **********************/
25  QApplication app(argc, argv);
26  %(package)s::MainWindow w(argc,argv);
27  w.show();
28  app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
29  int result = app.exec();
30 
31  return result;
32 }
int main(int argc, char **argv)
Definition: main.cpp:20
#define package
Definition: main_window.hpp:9
Qt central, all operations relating to the view part here.
Definition: main_window.hpp:31


qt_create
Author(s): Daniel Stonier
autogenerated on Wed Mar 11 2020 03:12:19