00001 // 00002 // This application launches the main Qt GUI which starts with psana 00003 // 00004 #include <QApplication> 00005 #include "PSQt/PSQtGUIMain.h" 00006 #include "PSQt/TestThread1.h" 00007 #include "PSQt/allinone.h" 00008 00009 int main( int argc, char **argv ) 00010 { 00011 QApplication app( argc, argv ); // SHOULD BE created before QThread object 00012 00013 PSQt::TestThread1* t1 = new PSQt::TestThread1(); 00014 PSQt::TestThread1* t2 = new PSQt::TestThread1(); 00015 00016 t1 -> start(); 00017 t2 -> start(); 00018 00019 PSQt::PSQtGUIMain* w1 = new PSQt::PSQtGUIMain(); 00020 PSQt::MyWidget* w2 = new PSQt::MyWidget(); 00021 00022 w1->show(); 00023 w2->show(); 00024 00025 return app.exec(); // Begin to display qt4 GUI 00026 }