39#include <qapplication.h>
41#ifdef G4VIS_USE_VTK_QT
42#include <qsurfaceformat.h>
43#include "QVTKOpenGLNativeWidget.h"
110 args = (
char **)malloc( 1 *
sizeof(
char *) );
111 args[0] = (
char *)malloc(10 *
sizeof(
char));
112 strncpy(
args[0],
"my_app \0", 9);
115 int *p_argn = (
int*)malloc(
sizeof(
int));
118 qApp->setAttribute( Qt::AA_UseDesktopOpenGL );
121#ifdef G4VIS_USE_VTK_QT
122 QSurfaceFormat::setDefaultFormat(QVTKOpenGLNativeWidget::defaultFormat());
124 new QApplication (*p_argn,
args);
157 setlocale (LC_NUMERIC,
"C");
192 qApp->processEvents();
G4GLOB_DLL std::ostream G4cout
static G4Qt * getInstance()
void FlushAndWaitExecution()
G4int GetVerboseLevel() const
static G4UImanager * GetUIpointer()
void SetMainInteractor(G4Interactor)
void SetArguments(int, char **)