Skip to content

How to know if CDockManager object is already deleted? #707

Answered by char101
mrawd asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mrawd
Comment options

Answer selected by mrawd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants