30 #if defined(G4INTY_BUILD_QT) || defined(G4INTY_USE_QT)
41 #include <qapplication.h>
49 G4Qt* G4Qt::getInstance (
54 return G4Qt::getInstance (0,NULL,(
char*)
"Geant4");
57 G4Qt* G4Qt::getInstance (
66 instance =
new G4Qt(a_argn,a_args,a_class);
87 SetMainInteractor (qApp);
88 SetArguments (a_argn,a_args);
108 args = (
char **)malloc( 1 *
sizeof(
char *) );
109 args[0] = (
char *)malloc(10 *
sizeof(
char));
110 strncpy(args[0],
"my_app \0", 9);
113 int *p_argn = (
int*)malloc(
sizeof(
int));
116 qApp->setAttribute( Qt::AA_UseDesktopOpenGL );
118 new QApplication (*p_argn, args);
129 SetMainInteractor (qApp);
131 SetArguments (a_argn,a_args);
151 setlocale (LC_NUMERIC,
"C");
172 void* G4Qt::GetEvent (
180 void G4Qt::FlushAndWaitExecution (
186 qApp->processEvents();
190 bool G4Qt::IsExternalApp (