Added code to suppress the generation of native widget siblings.

Sun, 25 Jun 2017 14:15:48 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 25 Jun 2017 14:15:48 +0200
changeset 5767
e899248519e0
parent 5766
eb2139c20553
child 5768
6f4d7d02cb1e

Added code to suppress the generation of native widget siblings.

E5Gui/E5Application.py file | annotate | diff | comparison | revisions
diff -r eb2139c20553 -r e899248519e0 E5Gui/E5Application.py
--- a/E5Gui/E5Application.py	Sat Jun 24 17:54:06 2017 +0200
+++ b/E5Gui/E5Application.py	Sun Jun 25 14:15:48 2017 +0200
@@ -9,7 +9,7 @@
 
 from __future__ import unicode_literals
 
-from PyQt5.QtCore import QCoreApplication
+from PyQt5.QtCore import Qt, QCoreApplication
 from PyQt5.QtWidgets import QApplication
 
 
@@ -25,6 +25,8 @@
         """
         super(E5Application, self).__init__(argv)
         
+        QCoreApplication.setAttribute(Qt.AA_DontCreateNativeWidgetSiblings)
+        
         self.__objectRegistry = {}
         self.__pluginObjectRegistry = {}
         

eric ide

mercurial