Little change to improve HighDPI compatibility.

Tue, 05 Sep 2017 19:32:23 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 05 Sep 2017 19:32:23 +0200
changeset 5877
42482d9025af
parent 5876
c80bff7c9fab
child 5878
74d02cd37185

Little change to improve HighDPI compatibility.

E5Gui/E5Application.py file | annotate | diff | comparison | revisions
--- a/E5Gui/E5Application.py	Mon Sep 04 18:49:02 2017 +0200
+++ b/E5Gui/E5Application.py	Tue Sep 05 19:32:23 2017 +0200
@@ -23,6 +23,12 @@
         
         @param argv command line arguments
         """
+        try:
+            QCoreApplication.setAttribute(Qt.AA_EnableHighDpiScaling)
+            # __IGNORE_EXCEPTION__
+        except AttributeError:
+            pass
+        
         super(E5Application, self).__init__(argv)
         
         QCoreApplication.setAttribute(Qt.AA_DontCreateNativeWidgetSiblings)

eric ide

mercurial