00001 00002 #include "compiler_options.h" 00003 #include "MainWindow.h" // Header file for MainWindow class 00004 #include <Qt/qapplication.h> // Header file to get a new instance of QApplication 00005 00006 00007 int main(int argc, char* argv[]) 00008 { 00009 // create a new instance of QApplication with params argc and argv 00010 QApplication app( argc, argv ); 00011 00012 // create a new instance of MainWindow with no parent widget 00013 MainWindow* mainWindow = new MainWindow( 0, Qt::Window ); 00014 00015 // Shows the widget and its child widgets. 00016 mainWindow->show(); 00017 00018 // Enters the main event loop and waits until exit() is called 00019 // or the main widget is destroyed or by default the last window closed, 00020 // and returns the value that was set via to exit() 00021 // (which is 0 if exit() is called via quit()). 00022 return app.exec(); 00023 } 00024 00025