threading.Thread seems to work better than QThread.