qt6: Only apply explicit HiDpi scaling on older Qt

This flag is deprecated in Qt6
This commit is contained in:
Tom Dewey 2024-07-17 10:10:40 +01:00 committed by Tom Dewey
parent df33637d32
commit 4b256fef3a

View file

@ -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).