From d00a87c79a79a868e70319a18453d6abb0950e3b Mon Sep 17 00:00:00 2001 From: gitlost Date: Sun, 10 Apr 2022 18:34:51 +0100 Subject: [PATCH] Cater for HiDPI display, ticket #257, props bitaround --- frontend_qt/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend_qt/main.cpp b/frontend_qt/main.cpp index 33df3a2b..85412770 100644 --- a/frontend_qt/main.cpp +++ b/frontend_qt/main.cpp @@ -22,6 +22,9 @@ int main(int argc, char *argv[]) { Q_INIT_RESOURCE(resources); +#if QT_VERSION >= 0x50600 + QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif #if QT_VERSION >= 0x50400 /* Suppresses "Qt WebEngine seems to be initialized from a plugin" warning */ QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);