diff --git a/resources/resources.cpp b/resources/resources.cpp index 8e93bde..97ca479 100644 --- a/resources/resources.cpp +++ b/resources/resources.cpp @@ -314,7 +314,9 @@ bool hasCoreApp() void setupCommonQtApplicationAttributes() { #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) - QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true); + if (!QCoreApplication::instance()) { + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true); + } QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true); #endif }