PyQt5 - QThread: Destroyed while thread is still running

thread = QThread()

改为:

thread = QThread(parent=self)

 

你可能感兴趣的:(Python)