How to use QThread correctly in pyqt with moveToThread()?

The default run() implementation in QThread runs an event loop for you, the equivalent of: class GenericThread(QThread): def run(self, *args): self.exec_() The important thing about an event loop is that it allows objects owned by the thread to receive events on their slots, which will be executed in that thread. Those objects are just QObjects, … Read more