Extended the E5Application class to set High DPI pixmap usage.

Fri, 30 Jun 2017 19:48:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 30 Jun 2017 19:48:32 +0200
changeset 5778
1ee0b025691e
parent 5777
2c4441d65ee3
child 5779
b53fabc86f3c

Extended the E5Application class to set High DPI pixmap usage.

E5Gui/E5Application.py file | annotate | diff | comparison | revisions
--- a/E5Gui/E5Application.py	Thu Jun 29 19:21:52 2017 +0200
+++ b/E5Gui/E5Application.py	Fri Jun 30 19:48:32 2017 +0200
@@ -26,6 +26,11 @@
         super(E5Application, self).__init__(argv)
         
         QCoreApplication.setAttribute(Qt.AA_DontCreateNativeWidgetSiblings)
+        try:
+            QCoreApplication.setAttribute(Qt.AA_UseHighDpiPixmaps)
+            # __IGNORE_EXCEPTION__
+        except AttributeError:
+            pass
         
         self.__objectRegistry = {}
         self.__pluginObjectRegistry = {}

eric ide

mercurial