Changeset 610 for trunk/geant4/interfaces/common/src/G4Qt.cc
- Timestamp:
- Nov 22, 2007, 6:07:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/interfaces/common/src/G4Qt.cc
r608 r610 32 32 #if defined(G4INTY_BUILD_QT) || defined(G4INTY_USE_QT) 33 33 34 #define GEANT4_QT_DEBUG 35 34 36 #include <stdlib.h> 35 37 #include <string.h> … … 40 42 41 43 #include <qapplication.h> 44 #include <qpushbutton.h> // EN TEST 42 45 43 46 … … 96 99 #endif 97 100 #if QT_VERSION < 0x040000 98 qApp = new QApplication (a_argn, a_args);101 // EN TEST qApp = new QApplication (a_argn, a_args); 99 102 // QApplication qApp(a_argn, a_args); 100 103 // if(&qApp == NULL) { … … 119 122 } 120 123 #ifdef GEANT4_QT_DEBUG 121 if (qApp) {124 // if (qApp) { 122 125 printf("G4Qt::qApp exist\n"); 123 } else { 124 printf("G4Qt::qApp not exist\n"); 125 } 126 // =================== EN TEST ============== 127 new QApplication ( a_argn, a_args ); 128 129 QPushButton hello( "Hello world!", 0 ); 130 hello.resize( 100, 30 ); 131 132 qApp->setMainWidget( &hello ); 133 hello.show(); 134 qApp->exec(); 135 printf("G4Qt::qApp exist END\n"); 136 // =================== EN TEST ============== 137 // } else { 138 // printf("G4Qt::qApp not exist\n"); 139 // } 126 140 #endif 127 141 // AddDispatcher ((G4DispatchFunction)XtDispatchEvent);
Note: See TracChangeset
for help on using the changeset viewer.