Last active
February 28, 2021 02:07
-
-
Save serg06/de5456807936e6543acc4999dd36cfaa to your computer and use it in GitHub Desktop.
Fix for PySIde2 QThread started signal executing/blocking on main thread
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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