diff --git a/dist/windows/qt.conf b/dist/windows/qt.conf index bbe76d586..372600dc5 100644 --- a/dist/windows/qt.conf +++ b/dist/windows/qt.conf @@ -1,2 +1,5 @@ [Paths] Translations = translations + +[Platforms] +WindowsArguments = dpiawareness=1 diff --git a/src/app/application.cpp b/src/app/application.cpp index 2025f82b7..1a20c1f45 100644 --- a/src/app/application.cpp +++ b/src/app/application.cpp @@ -92,6 +92,9 @@ Application::Application(const QString &id, int &argc, char **argv) setApplicationName("qBittorrent"); initializeTranslation(); #ifndef DISABLE_GUI +#ifdef QBT_USES_QT5 + setAttribute(Qt::AA_UseHighDpiPixmaps, true); // opt-in to the high DPI pixmap support +#endif // QBT_USES_QT5 setQuitOnLastWindowClosed(false); #ifdef Q_OS_WIN connect(this, SIGNAL(commitDataRequest(QSessionManager &)), this, SLOT(shutdownCleanup(QSessionManager &)), Qt::DirectConnection);