Enable highdpi scaling

Otherwise everything is tiny on Windows
This commit is contained in:
Nicolas Fella 2022-04-02 14:57:57 +02:00
parent 893c647c94
commit d98bb3cc96
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ int main(int argc, char *argv[])
qputenv("QT_ENABLE_GLYPH_CACHE_WORKAROUND", "1");
}
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#ifdef Q_OS_ANDROID
QGuiApplication app(argc, argv);
qInstallMessageHandler(myMessageHandler);