[PyQt] How do I intercept widget destruction?

Jeremy Sanders jeremy at jeremysanders.net
Wed Oct 22 17:31:18 BST 2008


Hi - this may be an FAQ, but I haven't seen it.

Is it possible to receive notification just before a QWidget is destroyed in
Python by subclassing? I'd like to call some cleanup routines for a custom
widget when it is removed from the screen.

Thanks

Jeremy

-- 
http://www.jeremysanders.net/



More information about the PyQt mailing list