From a3bf02350601f4ea081f33352f7f4222a8d85c49 Mon Sep 17 00:00:00 2001 From: tompollok Date: Tue, 5 Dec 2017 21:51:58 +0100 Subject: [PATCH] enable high dpi scaling when qt version >= 5.6.0 (#1008) --- gui/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gui/main.cpp b/gui/main.cpp index d9420c47d..9dcd90c50 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -41,6 +41,11 @@ static bool CheckArgs(const QStringList &args); int main(int argc, char *argv[]) { + +#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) + QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif + QApplication app(argc, argv); #if QT_VERSION < 0x050000