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


qt_tutorials
Author(s): Daniel Stonier
autogenerated on Wed Mar 11 2020 03:12:20