Merge pull request #2718 from therealfarfetchd/hidpi-icon-fix

Enable HiDPI pixmaps to fix icon scaling for HiDPI displays
This commit is contained in:
Petr Mrázek 2019-06-30 15:39:29 +02:00 committed by GitHub
commit 0b86a7ebf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,7 @@ int main(int argc, char *argv[])
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) #if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif #endif
// initialize Qt // initialize Qt