From 61cb997e4e9ebf50bcff835841fbd1ecc9499e49 Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: 周五, 22 12月 2023 21:14:31 +0800 Subject: [PATCH] add themechange notify on win --- examples/qml/main.cpp | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/qml/main.cpp b/examples/qml/main.cpp index dba5d17..e9cf0a7 100644 --- a/examples/qml/main.cpp +++ b/examples/qml/main.cpp @@ -4,10 +4,14 @@ #include <QWKQuick/qwkquickglobal.h> int main(int argc, char *argv[]) { - qputenv("QT_WIN_DEBUG_CONSOLE", "1"); + qputenv("QT_WIN_DEBUG_CONSOLE", "attach"); qputenv("QSG_INFO", "1"); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) qputenv("QT_QUICK_CONTROLS_STYLE", "Basic"); -#if 1 +#else + qputenv("QT_QUICK_CONTROLS_STYLE", "Default"); +#endif +#if 0 qputenv("QSG_RHI_BACKEND", "d3d12"); qputenv("QSG_RHI_HDR", "scrgb"); qputenv("QT_QPA_DISABLE_REDIRECTION_SURFACE", "1"); -- Gitblit v1.9.1