From fb8f86f7f114fce8b64c417ae9df64233daf61e4 Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Sat, 14 Dec 2019 12:10:11 +0100 Subject: [PATCH] App does not work with Qt::AA_EnableHighDpiScaling flags enabled on Windows platform since Qt 5.13.X --- sources/main.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sources/main.cpp b/sources/main.cpp index 513b76427..974517ba7 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -35,13 +35,7 @@ int main(int argc, char **argv) QCoreApplication::setOrganizationDomain("qelectrotech.org"); QCoreApplication::setApplicationName("QElectroTech"); //Creation and execution of the application - //HighDPI -#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) - QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); -#else - qputenv("QT_DEVICE_PIXEL_RATIO", QByteArray("auto")); -#endif - + SingleApplication app(argc, argv, true); #ifdef Q_OS_MACOS //Handle the opening of QET when user double click on a .qet .elmt .tbt file