From 4cfd14e9bd2fdb57392a9bd83497d01753fd49ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Tue, 9 Jan 2024 21:57:02 +0800 Subject: [PATCH] update --- example/src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example/src/main.cpp b/example/src/main.cpp index 9874f5ce..bbcb34cc 100644 --- a/example/src/main.cpp +++ b/example/src/main.cpp @@ -33,7 +33,11 @@ int main(int argc, char *argv[]) ::SetUnhandledExceptionFilter(MyUnhandledExceptionFilter); qputenv("QT_QPA_PLATFORM","windows:darkmode=2"); #endif +#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) qputenv("QT_QUICK_CONTROLS_STYLE","Basic"); +#else + qputenv("QT_QUICK_CONTROLS_STYLE","Default"); +#endif #ifdef Q_OS_LINUX //fix bug UOSv20 does not print logs qputenv("QT_LOGGING_RULES","");