[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....

Phill also has a little note at bottom of FAQ's page....

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

More information about the PyQt mailing list