Re: Garbage collection with QT

2005-06-08 Thread Ken Godee
> Is there a way, to find out all references to the QMainWindow or its > hosted QTable, for having a mechanism to destroy them? > Yes, of coarse, the docs are your friend :) QObject::children() QObject::removeChild() QObject::parent() To find all the children for an instance you can create a lo

Re: Garbage collection with QT

2005-06-08 Thread Mike Tammerman
Not all leakage problems caused by qt or python. There is a wrapping layer between Qt and Python provided by SIP. Therefore, SIP may cause leakages. Also PyQt had a paintCell memory leakage problem several months ago. If you're using an old snapshot of PyQt or SIP, that would be a problem. Try usin

Garbage collection with QT

2005-06-07 Thread Marco Bartel
Hello, I got a question regarding garbage collection in python when using PyQT. How can i safely get rid of an Object instance and delete it permanently. For example when having a QTable with a bunch of records inside and closing the window hosting it, the memory space will not being freed up an