From 97f9e142b4c096237331549df38a7864867042e7 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 25 Feb 2020 01:15:05 +0100 Subject: [PATCH] Set hiDPI options --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 48ad08c38..f5ad4173e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -177,6 +177,9 @@ int main(int argc, char* argv[]) { QCoreApplication::setLibraryPaths(QStringList() << QCoreApplication::applicationDirPath() + "/" + USE_BUNDLE_DIR); #endif + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + #ifndef Q_OS_MACOS // Gnome on Ubuntu has menu icons disabled by default. I think that's a bad idea, and makes some menus in Strawberry look confusing. QCoreApplication::setAttribute(Qt::AA_DontShowIconsInMenus, false);