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