From 2c10d3f5b214f392404ee562ba543275d9bfa8c3 Mon Sep 17 00:00:00 2001 From: Benjamin Fischer Date: Sat, 12 Mar 2022 10:56:48 +0100 Subject: [PATCH] fixes #1987 by adding highdpi qt attributes. --- qt_ui/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qt_ui/main.py b/qt_ui/main.py index ee7944c3..22153675 100644 --- a/qt_ui/main.py +++ b/qt_ui/main.py @@ -69,6 +69,8 @@ def run_ui(game: Optional[Game], new_map: bool, dev: bool) -> None: app = QApplication(sys.argv) app.setAttribute(Qt.AA_DisableWindowContextHelpButton) + app.setAttribute(Qt.AA_EnableHighDpiScaling, True) # enable highdpi scaling + app.setAttribute(Qt.AA_UseHighDpiPixmaps, True) # use highdpi icons # init the theme and load the stylesheet based on the theme index liberation_theme.init()