From 0a8bf197feb5490ae866535ac0ffa04ed8933578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Sun, 11 Aug 2024 07:27:48 +0200 Subject: [PATCH] Update main.cpp https://doc.qt.io/qt-5/qguiapplication.html#setHighDpiScaleFactorRoundingPolicy --- src/app/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/main.cpp b/src/app/main.cpp index fd5dfee2a..65ddfb822 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -120,6 +120,7 @@ int main(int argc, char *argv[]) QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); #endif + QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); QApplication::setAttribute(Qt::AA_ShareOpenGLContexts); QApplication::setAttribute(Qt::AA_UseDesktopOpenGL);