Changeset 606 for trunk/geant4/interfaces/common
- Timestamp:
- Nov 15, 2007, 11:56:03 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/interfaces/common/src/G4Qt.cc
r602 r606 25 25 // 26 26 // 27 // $Id: G4Qt.cc,v 1. 4 2007/11/09 15:03:21lgarnier Exp $27 // $Id: G4Qt.cc,v 1.5 2007/11/15 10:10:02 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 91 91 if(QtInited==FALSE) { //Qt should be Inited once ! 92 92 printf("G4Qt::G4Qt inited Qt\n"); 93 93 #if QT_VERSION < 0x040000 94 qApp = new QApplication (a_argn, a_args); 95 // QApplication qApp(a_argn, a_args); 96 #else 94 97 new QApplication (a_argn, a_args); 98 #endif 95 99 96 100 if(qApp==NULL) { 97 101 G4cout << "G4Qt : Unable to init Qt." << G4endl; 102 } else { 103 QtInited = TRUE; 104 SetMainInteractor (qApp); 105 SetArguments (a_argn,a_args); 106 printf("G4Qt::G4Qt inited Qt END\n"); 98 107 } 99 QtInited = TRUE;100 SetMainInteractor (qApp);101 108 } 102 SetArguments (a_argn,a_args); 109 if (qApp) 110 printf("G4Qt::qApp exist\n"); 111 else 112 printf("G4Qt::qApp not exist\n"); 103 113 // AddDispatcher ((G4DispatchFunction)XtDispatchEvent); 104 114 }
Note: See TracChangeset
for help on using the changeset viewer.