[PyKDE] Garbage collection, C++ destructor

Ken Godee ken at perfect-image.com
Tue Feb 3 21:44:02 GMT 2004


Simon Edwards wrote:

> hi all,
> 
> How can a force a KProgressDialog object to be garbage collected and have its 
> C++ destructor called?
> 
> cheers,
> 

If I understand the question correctly, I use two
different ways depending on what I'm doing with the object.

1. When creating an object pass the widget flag "Qt.WDestructiveClose"

2. parent.removeChild(child)
    del child

Boudewijn Rempt's book has some good info on this....
http://www.opendocs.org/pyqt/index.lxp?lxpwrap=c2341%2ehtm

Phill also has a little note at bottom of FAQ's page....
http://www.riverbankcomputing.co.uk/pyqt/faq.php

By the way, GuardDog is one of my favorite firewall tools,
keep up the good work.






More information about the PyQt mailing list