From 512db8c6ff55819e421761c4001f4a91ff117946 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 22 Jul 2019 00:03:12 +0200 Subject: [PATCH] Actually set attributes before starting the app fixes "Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created." --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index bd7560da..60bb6c76 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -118,12 +118,12 @@ main(int argc, char *argv[]) } #endif - QApplication app(argc, argv); QCoreApplication::setApplicationName("nheko"); QCoreApplication::setApplicationVersion(nheko::version); QCoreApplication::setOrganizationName("nheko"); QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + QApplication app(argc, argv); QCommandLineParser parser; parser.addHelpOption();