diff --git a/src/app/main.cpp b/src/app/main.cpp index cf33b466757..b96d39225c5 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -313,6 +313,11 @@ void loadFonts() int main(int argc, char **argv) { +#ifdef Q_OS_WIN + if (!qEnvironmentVariableIsSet("QT_OPENGL")) + qputenv("QT_OPENGL", "angle"); +#endif + if (qEnvironmentVariableIsSet("QTCREATOR_DISABLE_NATIVE_MENUBAR") || qgetenv("XDG_CURRENT_DESKTOP").startsWith("Unity")) { QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar);