From efcf9c57f816331fded5af5cbebb409383e4fa43 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Fri, 18 Mar 2016 16:34:55 +0000 Subject: [PATCH] Enable High Dpi Scaling for QT_VERSION >= 5.6.0 git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4384 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sources/main.cpp b/sources/main.cpp index 13b370009..8d341bc0f 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -31,5 +31,8 @@ int main(int argc, char **argv) QCoreApplication::setOrganizationDomain("qelectrotech.org"); QCoreApplication::setApplicationName("QElectroTech"); //Creation and execution of the application +#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) +QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif return(QETApp(argc, argv).exec()); }