From 2c288e830ed718b954c9006e7108a73adbb3f5c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Sat, 15 Jun 2024 10:11:24 +0800 Subject: [PATCH] update --- example/src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/example/src/main.cpp b/example/src/main.cpp index 21cc3f78..bd80267c 100644 --- a/example/src/main.cpp +++ b/example/src/main.cpp @@ -59,6 +59,9 @@ int main(int argc, char *argv[]) QGuiApplication::setQuitOnLastWindowClosed(false); SettingsHelper::getInstance()->init(argv); Log::setup(argv,uri); +#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) + QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL); +#endif #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);