31 #if defined(G4INTY_BUILD_QT) || defined(G4INTY_USE_QT)
42 #include <qapplication.h>
45 G4Qt* G4Qt::instance = NULL;
50 G4Qt* G4Qt::getInstance (
55 return G4Qt::getInstance (0,NULL,(
char*)
"Geant4");
58 G4Qt* G4Qt::getInstance (
67 instance =
new G4Qt(a_argn,a_args,a_class);
84 #ifdef G4DEBUG_INTERFACES_COMMON
85 printf(
"G4Qt::G4Qt try to inited Qt\n");
91 SetMainInteractor (qApp);
92 SetArguments (a_argn,a_args);
94 #ifdef G4DEBUG_INTERFACES_COMMON
95 printf(
"G4Qt::G4Qt alredy inited in external \n");
115 args = (
char **)
malloc( 1 *
sizeof(
char *) );
116 args[0] = (
char *)
malloc(10 *
sizeof(
char));
117 strncpy(args[0],
"my_app \0", 9);
120 int *p_argn = (
int*)
malloc(
sizeof(
int));
122 #ifdef G4DEBUG_INTERFACES_COMMON
123 printf(
"G4Qt::G4Qt QAppl \n");
125 new QApplication (*p_argn, args);
136 #ifdef G4DEBUG_INTERFACES_COMMON
137 printf(
"G4Qt::G4Qt SetMainInteractor\n");
139 SetMainInteractor (qApp);
141 SetArguments (a_argn,a_args);
142 #ifdef G4DEBUG_INTERFACES_COMMON
143 printf(
"G4Qt::G4Qt inited Qt END\n");
148 #ifdef G4DEBUG_INTERFACES_COMMON
150 printf(
"G4Qt::qApp already exist\n");
152 printf(
"G4Qt::qApp not exist\n");
176 void* G4Qt::GetEvent (
184 void G4Qt::FlushAndWaitExecution (
190 qApp->processEvents();
194 bool G4Qt::IsExternalApp (
G4int GetVerboseLevel() const
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
printf("%d Experimental points found\n", nlines)
void * malloc(size_t __size)