QThread: Destroyed while thread is still running
-
Why is this simple code can not normally finish?
app = QGuiApplication(sys.argv) from PySide6.QtCore import QThread thread_sound = QThread() thread_sound.start() from PySide6.QtCore import QTimer QTimer.singleShot(1_000, app.quit) sys.exit(app.exec())
get error QThread: Destroyed while thread is still running
-
Why is this simple code can not normally finish?
app = QGuiApplication(sys.argv) from PySide6.QtCore import QThread thread_sound = QThread() thread_sound.start() from PySide6.QtCore import QTimer QTimer.singleShot(1_000, app.quit) sys.exit(app.exec())
get error QThread: Destroyed while thread is still running
-
@uralbash You go to documentation https://doc.qt.io/qt-5/qthread.html
and see that there are https://doc.qt.io/qt-5/qthread.html#quit and https://doc.qt.io/qt-5/qthread.html#terminate -
@uralbash You go to documentation https://doc.qt.io/qt-5/qthread.html
and see that there are https://doc.qt.io/qt-5/qthread.html#quit and https://doc.qt.io/qt-5/qthread.html#terminate