Skip to content

Commit 0b65686

Browse files
authored
Merge pull request #14 from GPLgithub/master
For #13673, fixed QT problems
2 parents 192fed9 + 7f039a9 commit 0b65686

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

python/tk_unreal/unreal_sg_engine.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def _execute_deferred(self, callback):
204204
unreal.log("{0} _execute_deferred called with {1}".format(self, callback.__str__()))
205205
self._callback = callback
206206

207-
from sgtk.platform.qt5 import QtCore
207+
from sgtk.platform.qt import QtCore
208208
QtCore.QTimer.singleShot(0, self._execute_within_exception_trap)
209209

210210
def _execute_within_exception_trap(self):
@@ -224,16 +224,16 @@ def _execute_within_exception_trap(self):
224224

225225
@unreal.ufunction(override=True)
226226
def shutdown(self):
227-
from sgtk.platform.qt5 import QtWidgets
227+
from sgtk.platform.qt import QtGui
228228

229229
engine = sgtk.platform.current_engine()
230230
if engine is not None:
231231
unreal.log("Shutting down %s" % self.__class__.__name__)
232232

233233
# destroy_engine of tk-unreal will take care of closing all dialogs that are still opened
234234
engine.destroy()
235-
QtWidgets.QApplication.instance().quit()
236-
QtWidgets.QApplication.processEvents()
235+
QtGui.QApplication.instance().quit()
236+
QtGui.QApplication.processEvents()
237237

238238
@staticmethod
239239
def object_path(asset_data):
@@ -366,7 +366,7 @@ def _jump_to_sg(self):
366366
"""
367367
Callback to Jump to SG from context.
368368
"""
369-
from sgtk.platform.qt5 import QtGui, QtCore
369+
from sgtk.platform.qt import QtGui, QtCore
370370
url = self._get_context_url(sgtk.platform.current_engine())
371371
QtGui.QDesktopServices.openUrl(QtCore.QUrl(url))
372372

0 commit comments

Comments
 (0)