File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -106,13 +106,14 @@ def init_engine(self):
106
106
107
107
def init_qt_app (self ):
108
108
self .logger .debug ("%s: Initializing QtApp for Unreal" , self )
109
- from sgtk .platform .qt5 import QtWidgets
110
109
111
- if not QtWidgets .QApplication .instance ():
112
- self ._qt_app = QtWidgets .QApplication (sys .argv )
110
+ from sgtk .platform .qt import QtGui
111
+
112
+ if not QtGui .QApplication .instance ():
113
+ self ._qt_app = QtGui .QApplication (sys .argv )
113
114
self ._qt_app .setQuitOnLastWindowClosed (False )
114
115
else :
115
- self ._qt_app = QtWidgets .QApplication .instance ()
116
+ self ._qt_app = QtGui .QApplication .instance ()
116
117
117
118
# On other platforms than Windows, we need to process the Qt events otherwise
118
119
# UIs are "frozen". We use a slate tick callback to do that on a regular basis.
@@ -131,8 +132,8 @@ def _process_qt_events_cb(delta_time):
131
132
132
133
:param float delta_time: delta time since the last run.
133
134
"""
134
- from sgtk .platform .qt5 import QtWidgets
135
- qapp = QtWidgets .QApplication .instance ()
135
+ from sgtk .platform .qt import QtGui
136
+ qapp = QtGui .QApplication .instance ()
136
137
if qapp :
137
138
qapp .processEvents ()
138
139
You can’t perform that action at this time.
0 commit comments