diff options
author | Knud Dollereder <knud.dollereder@qt.io> | 2021-05-25 15:26:08 +0200 |
---|---|---|
committer | Knud Dollereder <knud.dollereder@qt.io> | 2021-05-25 13:31:59 +0000 |
commit | af4ce2fbe6f1901b2af1c123d8222d44abc8bf5e (patch) | |
tree | b58e0fc610f072aac7b7c5b0d882140f669f773f /src/app/main.cpp | |
parent | ef5423d6ce01531b47dd3ba3806c1980b667c21e (diff) |
Set QSG_RHI_BACKEND to opengl
in order to prevent a crash ancompanying the console output:
QQuickWidget is only supported on OpenGL.
Use QQuickWindow::setGraphicsApi() to override the default
Change-Id: Iab7c0cc486b150723000cc11ba4c6d9cd4be8b03
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/app/main.cpp')
-rw-r--r-- | src/app/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp index bc5e61c7840..248fa8efef5 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -541,7 +541,7 @@ int main(int argc, char **argv) if (!qEnvironmentVariableIsSet("QT_OPENGL")) QCoreApplication::setAttribute(Qt::AA_UseOpenGLES); #else - qputenv("QT_QUICK_BACKEND", "opengl"); + qputenv("QSG_RHI_BACKEND", "opengl"); #endif if (qEnvironmentVariableIsSet("QTCREATOR_DISABLE_NATIVE_MENUBAR") |