|
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? |
Answered by
char101
Feb 1, 2025
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 |
1 reply
Answer selected by
mrawd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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