From 9e9f035f3553d53457de3892b900aa3d59d171de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 12 Mar 2022 11:51:29 +0100 Subject: [PATCH] Use Qt::HighDpiScaleFactorRoundingPolicy::PassThrough It will be the default in Qt6 and respecting the scale factor that the user sets is the right thing to do. --- YACReader/main.cpp | 1 - YACReaderLibrary/main.cpp | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/YACReader/main.cpp b/YACReader/main.cpp index bc8f998c..b16cfd03 100644 --- a/YACReader/main.cpp +++ b/YACReader/main.cpp @@ -95,7 +95,6 @@ int main(int argc, char *argv[]) } QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); - QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); #if defined(_MSC_VER) && defined(_DEBUG) diff --git a/YACReaderLibrary/main.cpp b/YACReaderLibrary/main.cpp index bf99164b..b2f0d7f8 100644 --- a/YACReaderLibrary/main.cpp +++ b/YACReaderLibrary/main.cpp @@ -126,6 +126,7 @@ int main(int argc, char **argv) } QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); QApplication app(argc, argv);