From 4b256fef3a39790d8623be2db285fb841b54dce7 Mon Sep 17 00:00:00 2001 From: Tom Dewey Date: Wed, 17 Jul 2024 10:10:40 +0100 Subject: [PATCH] qt6: Only apply explicit HiDpi scaling on older Qt This flag is deprecated in Qt6 --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index c58a847..99ed5b2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -139,7 +139,9 @@ int main(int argc, char *argv[]) } } +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif /** QtQuick on QT5 exhibits spurious disk cache failures that cannot be * resolved by a user in a trivial manner (they have to delete the cache manually).