From 150744ab8a6af4afceb541683c8e253bc66eebe9 Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 7 Dec 2019 09:05:57 -0400 Subject: [PATCH] main.cpp: put setAttribute before creating app --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 4ad88e60..2cae3721 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,14 +11,13 @@ int main(int argc, char *argv[]) { - QApplication app(argc, argv); - QApplication::setOrganizationName("harmonyqml"); QApplication::setApplicationName("harmonyqml"); QApplication::setApplicationDisplayName("HarmonyQML"); QApplication::setApplicationVersion("0.2.3"); QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + QApplication app(argc, argv); QQmlEngine engine; QQmlContext *objectContext = new QQmlContext(engine.rootContext());