31#if defined(G4INTY_BUILD_QT) || defined(G4INTY_USE_QT)
41#include <qapplication.h>
44G4Qt* G4Qt::instance = NULL;
49G4Qt* G4Qt::getInstance (
54 return G4Qt::getInstance (0,NULL,(
char*)
"Geant4");
57G4Qt* G4Qt::getInstance (
66 instance =
new G4Qt(a_argn,a_args,a_class);
83#ifdef G4DEBUG_INTERFACES_COMMON
84 printf(
"G4Qt::G4Qt try to inited Qt\n");
90 SetMainInteractor (qApp);
91 SetArguments (a_argn,a_args);
93#ifdef G4DEBUG_INTERFACES_COMMON
94 printf(
"G4Qt::G4Qt alredy inited in external \n");
114 args = (
char **)malloc( 1 *
sizeof(
char *) );
115 args[0] = (
char *)malloc(10 *
sizeof(
char));
116 strncpy(args[0],
"my_app \0", 9);
119 int *p_argn = (
int*)malloc(
sizeof(
int));
121#ifdef G4DEBUG_INTERFACES_COMMON
122 printf(
"G4Qt::G4Qt QAppl \n");
124 new QApplication (*p_argn, args);
131#ifdef G4DEBUG_INTERFACES_COMMON
132 printf(
"G4Qt::G4Qt SetMainInteractor\n");
134 SetMainInteractor (qApp);
136 SetArguments (a_argn,a_args);
137#ifdef G4DEBUG_INTERFACES_COMMON
138 printf(
"G4Qt::G4Qt inited Qt END\n");
143#ifdef G4DEBUG_INTERFACES_COMMON
145 printf(
"G4Qt::qApp already exist\n");
147 printf(
"G4Qt::qApp not exist\n");
174void* G4Qt::GetEvent (
190void G4Qt::FlushAndWaitExecution (
197 qApp->processEvents();
201bool G4Qt::IsExternalApp (
G4DLLIMPORT std::ostream G4cout