From c3a86b04820114e3bbf82169ebb01fc7d6443ebc Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Thu, 10 Feb 2022 12:59:33 +0600 Subject: [PATCH] qt: Use non-integer HiDPI scaling on Qt 5 --- src/qt/qt_main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qt/qt_main.cpp b/src/qt/qt_main.cpp index ebeef8102..51412dab7 100644 --- a/src/qt/qt_main.cpp +++ b/src/qt/qt_main.cpp @@ -134,6 +134,7 @@ int main(int argc, char* argv[]) { QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); #endif + QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); QApplication app(argc, argv); qt_set_sequence_auto_mnemonic(false); Q_INIT_RESOURCE(qt_resources);