From 380aea2a6672e55e52b3e449eb351948e1d75144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Fri, 14 Jan 2022 19:21:43 +0100 Subject: [PATCH] Enable Qt::HighDpiScaleFactorRoundingPolicy::PassThrough --- YACReader/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/YACReader/main.cpp b/YACReader/main.cpp index b11fec0c..bc8f998c 100644 --- a/YACReader/main.cpp +++ b/YACReader/main.cpp @@ -96,6 +96,8 @@ int main(int argc, char *argv[]) QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); + #if defined(_MSC_VER) && defined(_DEBUG) _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); #endif