15int main(
int argc,
char *argv[])
18 if (QOperatingSystemVersion::currentType() == QOperatingSystemVersion::Windows
19 && !qEnvironmentVariableIsSet(rhiBackEndVar)) {
20 qputenv(rhiBackEndVar,
"gl");
24 QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
27 switch (app.parseCommandLineArguments()) {
28 case QDesigner::ParseArgumentsSuccess:
30 case QDesigner::ParseArgumentsError:
32 case QDesigner::ParseArgumentsHelpRequested:
35 QGuiApplication::setQuitOnLastWindowClosed(
false);
37 return QApplication::exec();