[PyQt] Memory leak when using QAbstractTableModel

Phil Thompson phil at riverbankcomputing.co.uk
Sun Dec 23 15:00:35 GMT 2007


On Sunday 23 December 2007, Noam Raphael wrote:
> 2007/12/23, Andreas Pakulat <apaku at gmx.de>:
> > Works fine here on Debian unstable, with a bit older PyQt4(I think from
> > November) and Qt4.3.2. Yes the memory usage increases when starting to
> > scroll, but not that much. After scrolling from one end to the other on
> > both bars the python process is still under 30MB of res-memory according
> > to top.
> >
> > Andreas
>
> If you enlarge the window and scroll slowly, does it increase any
> more? I think that every displayed cell leaks something, so if you
> display more cells, you leak more memory.

I see that behaviour, but a C++ version behaves in the same way so it's not a 
PyQt problem.

Phil


More information about the PyQt mailing list