From 12f42a555e9c57716c435716c6ceaa7a550f7a95 Mon Sep 17 00:00:00 2001 From: therealfarfetchd Date: Sun, 30 Jun 2019 17:06:58 +0200 Subject: [PATCH] Fix icon scaling for HiDPI displays (#3332) * Only apply hidpi icons on Linux --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index b6769661b..ab316df8f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -50,6 +50,9 @@ int main(int argc, char** argv) #if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#ifdef Q_OS_LINUX + QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); +#endif #endif #ifdef Q_OS_LINUX if (qgetenv("XDG_SESSION_TYPE") == QByteArrayLiteral("wayland")) {