[PyKDE] PyQt: Notification when a widget is closed

Arve Knudsen aknuds-1 at broadpark.no
Wed Oct 12 11:49:47 BST 2005


Can anyone tell me the idiomatic way of registering a "destructor" for a  
PyQt widget? I want to free resources bound to a specific (child) widget  
as soon as it is no longer in use, but it doesn't seem to receive  
QCloseEvent, nor can I rely on the QObject.destroyed signal (or so it  
seems). Any help would be much appreciated.

Arve




More information about the PyQt mailing list