Skip to content Skip to sidebar Skip to footer

Pyqt4 Qthread / Movetothread Not Working Depending On Context?

I'm trying to understand why the following code immediately exits, but works if I create the thread in the main context and not in a second object? from PyQt4 import QtCore import

Solution 1:

I've found the problem. Apparently you need to hold on to the new Thread's reference otherwise the Application will just quit...


Post a Comment for "Pyqt4 Qthread / Movetothread Not Working Depending On Context?"