diff --git a/lib/include/DOtherSide/DOtherSide.h b/lib/include/DOtherSide/DOtherSide.h index b62fbb6..190ceb2 100644 --- a/lib/include/DOtherSide/DOtherSide.h +++ b/lib/include/DOtherSide/DOtherSide.h @@ -66,7 +66,7 @@ DOS_API void DOS_CALL dos_qapplication_initialize_opengl(void); /// \brief Create a QGuiApplication /// \note The created QGuiApplication should be freed by calling dos_qguiapplication_delete() -DOS_API void DOS_CALL dos_qguiapplication_create(void); +DOS_API void DOS_CALL dos_qguiapplication_create(int argc, char** argv); /// \brief Calls the QGuiApplication::exec() function of the current QGuiApplication /// \note A QGuiApplication should have been already created through dos_qguiapplication_create() diff --git a/lib/src/DOtherSide.cpp b/lib/src/DOtherSide.cpp index 7bac204..ae735d0 100644 --- a/lib/src/DOtherSide.cpp +++ b/lib/src/DOtherSide.cpp @@ -127,12 +127,8 @@ void dos_qapplication_initialize_opengl() QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts); } -void dos_qguiapplication_create() +void dos_qguiapplication_create(int argc, char** argv) { - static int argc = 1; - static char empty[1] = {0}; - static char *argv[] = {empty}; - register_meta_types(); new QGuiApplication(argc, argv);