E5Gui/E5Application.py

changeset 5767
e899248519e0
parent 5587
ea526b78ee6c
child 5778
1ee0b025691e
equal deleted inserted replaced
5766:eb2139c20553 5767:e899248519e0
7 Class implementing a specialized application class. 7 Class implementing a specialized application class.
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 from PyQt5.QtCore import QCoreApplication 12 from PyQt5.QtCore import Qt, QCoreApplication
13 from PyQt5.QtWidgets import QApplication 13 from PyQt5.QtWidgets import QApplication
14 14
15 15
16 class E5Application(QApplication): 16 class E5Application(QApplication):
17 """ 17 """
22 Constructor 22 Constructor
23 23
24 @param argv command line arguments 24 @param argv command line arguments
25 """ 25 """
26 super(E5Application, self).__init__(argv) 26 super(E5Application, self).__init__(argv)
27
28 QCoreApplication.setAttribute(Qt.AA_DontCreateNativeWidgetSiblings)
27 29
28 self.__objectRegistry = {} 30 self.__objectRegistry = {}
29 self.__pluginObjectRegistry = {} 31 self.__pluginObjectRegistry = {}
30 32
31 def registerObject(self, name, objectRef): 33 def registerObject(self, name, objectRef):

eric ide

mercurial