-
I am trying to do a cleanup when my pySide6 application exits and I get this error when trying to see how many dock widgets are left in the dock manger:
Is there a way to know that dock manager object is already deleted? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
https://doc.qt.io/qtforpython-6/shiboken6/shibokenmodule.html#Shiboken.isValid Normally if you hit that error, you are doing it wrong. Python with Qt does not usually need cleanup, and if you do, do it in QMainWindow.closeEvent. Also this question is unrelated to this project. See https://doc.qt.io/qtforpython-6/shiboken6/typesystem_ownership.html |
Beta Was this translation helpful? Give feedback.
https://doc.qt.io/qtforpython-6/shiboken6/shibokenmodule.html#Shiboken.isValid
Normally if you hit that error, you are doing it wrong. Python with Qt does not usually need cleanup, and if you do, do it in QMainWindow.closeEvent.
Also this question is unrelated to this project. See https://doc.qt.io/qtforpython-6/shiboken6/typesystem_ownership.html