Skip to content

Instantly share code, notes, and snippets.

@serg06
Last active February 28, 2021 02:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serg06/de5456807936e6543acc4999dd36cfaa to your computer and use it in GitHub Desktop.
Save serg06/de5456807936e6543acc4999dd36cfaa to your computer and use it in GitHub Desktop.
Fix for PySIde2 QThread started signal executing/blocking on main thread
# Use this class instead of QThread
class QThread2(QThread):
# Use this signal instead of "started"
started2 = Signal()
def __init__(self):
QThread.__init__(self)
self.started.connect(self.onStarted)
def onStarted(self):
self.started2.emit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment