From a4d0b98d40d0f740742e393db774ee53302ec64c Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: 周五, 30 5月 2025 16:11:16 +0800 Subject: [PATCH] minor tweaks --- examples/mainwindow/main.cpp | 4 ++++ CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c03032..684aca5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.19) project(QWindowKit - VERSION 1.4.0.0 + VERSION 1.4.1.0 LANGUAGES CXX HOMEPAGE_URL "https://github.com/stdware/qwindowkit" DESCRIPTION "Cross-platform window customization framework" diff --git a/examples/mainwindow/main.cpp b/examples/mainwindow/main.cpp index 844dfcb..7052bbb 100644 --- a/examples/mainwindow/main.cpp +++ b/examples/mainwindow/main.cpp @@ -19,6 +19,10 @@ QGuiApplication::setHighDpiScaleFactorRoundingPolicy( Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); #endif +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); +#endif QCoreApplication::setAttribute(Qt::AA_DontCreateNativeWidgetSiblings); QApplication a(argc, argv); -- Gitblit v1.9.1