Changeset 617 for trunk/geant4/interfaces/common
- Timestamp:
- Nov 26, 2007, 6:10:35 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/interfaces/common/src/G4Qt.cc
r615 r617 29 29 // 30 30 // L. Garnier 31 32 #define GEANT4_QT_DEBUG33 31 34 32 #if defined(G4INTY_BUILD_QT) || defined(G4INTY_USE_QT) … … 101 99 #endif 102 100 #if QT_VERSION < 0x040000 103 // EN TESTqApp = new QApplication (a_argn, a_args);101 qApp = new QApplication (a_argn, a_args); 104 102 // QApplication qApp(a_argn, a_args); 105 103 // if(&qApp == NULL) { … … 124 122 } 125 123 #ifdef GEANT4_QT_DEBUG 126 //if (qApp) {124 if (qApp) { 127 125 printf("G4Qt::qApp exist\n"); 128 // =================== EN TEST ============== 129 new QApplication ( a_argn, a_args ); 130 131 QPushButton hello( "Hello world!", 0 ); 132 hello.resize( 100, 30 ); 133 134 qApp->setMainWidget( &hello ); 135 hello.show(); 136 qApp->exec(); 137 printf("G4Qt::qApp exist END\n"); 138 // =================== EN TEST ============== 139 // } else { 140 // printf("G4Qt::qApp not exist\n"); 141 // } 126 } else { 127 printf("G4Qt::qApp not exist\n"); 128 } 142 129 #endif 143 130 // AddDispatcher ((G4DispatchFunction)XtDispatchEvent);
Note: See TracChangeset
for help on using the changeset viewer.