From af4ce2fbe6f1901b2af1c123d8222d44abc8bf5e Mon Sep 17 00:00:00 2001 From: Knud Dollereder Date: Tue, 25 May 2021 15:26:08 +0200 Subject: [PATCH] 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 --- src/app/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")