Re: [PyQt] Memory leak when using QAbstractTableModel

2007-12-24 Thread Noam Raphael
Hurray! Thanks to Justin Noel on the qt-interest list, the following code now works and doesn't leak! Noam === #!/usr/bin/env python import sys from PyQt4 import QtCore, QtGui from PyQt4.QtCore import Qt class TableModel(QtCore.QAbstractTableModel): def rowCount(self, index):

Re: [PyQt] Memory leak when using QAbstractTableModel

2007-12-23 Thread Phil Thompson
On Sunday 23 December 2007, Noam Raphael wrote: > 2007/12/23, Andreas Pakulat <[EMAIL PROTECTED]>: > > 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 fr

Re: [PyQt] Memory leak when using QAbstractTableModel

2007-12-23 Thread Noam Raphael
2007/12/23, Andreas Pakulat <[EMAIL PROTECTED]>: > 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 proces

Re: [PyQt] Memory leak when using QAbstractTableModel

2007-12-23 Thread Phil Thompson
On Sunday 23 December 2007, Noam Raphael wrote: > 2007/12/23, Phil Thompson <[EMAIL PROTECTED]>: > > > Is there anything that can be done? > > > > Not if I can't reproduce the problem. I'm using current SIP and PyQt > > snapshots and Qt 4.3.3. > > It also works for me on windows, using the latest b

Re: [PyQt] Memory leak when using QAbstractTableModel

2007-12-23 Thread Andreas Pakulat
On 23.12.07 13:59:30, Noam Raphael wrote: > 2007/12/23, Phil Thompson <[EMAIL PROTECTED]>: > > > Is there anything that can be done? > > > > Not if I can't reproduce the problem. I'm using current SIP and PyQt > > snapshots > > and Qt 4.3.3. > > > It also works for me on windows, using the latest

Re: [PyQt] Memory leak when using QAbstractTableModel

2007-12-23 Thread Noam Raphael
2007/12/23, Phil Thompson <[EMAIL PROTECTED]>: > > Is there anything that can be done? > > Not if I can't reproduce the problem. I'm using current SIP and PyQt snapshots > and Qt 4.3.3. > It also works for me on windows, using the latest binary. But have you tried it on linux? I'm using ubuntu 7.10

Re: [PyQt] Memory leak when using QAbstractTableModel

2007-12-22 Thread Phil Thompson
On Saturday 22 December 2007, Noam Raphael wrote: > 2007/12/21, Phil Thompson <[EMAIL PROTECTED]>: > > Works fine for me with current versions. > > > > Phil > > Ok, I now compiled by myself PyQt 4.3.3 with sip 4.7.3. I have qt > 4.3.2 installed. The memory still leaks. > > Is there anything that ca

Re: [PyQt] Memory leak when using QAbstractTableModel

2007-12-22 Thread Noam Raphael
2007/12/21, Phil Thompson <[EMAIL PROTECTED]>: > Works fine for me with current versions. > > Phil Ok, I now compiled by myself PyQt 4.3.3 with sip 4.7.3. I have qt 4.3.2 installed. The memory still leaks. Is there anything that can be done? Noam ___ P

Re: [PyQt] Memory leak when using QAbstractTableModel

2007-12-21 Thread Phil Thompson
On Thursday 20 December 2007, Noam Raphael wrote: > Hello, > > I created a simple program which uses QAbstractTableModel to display a > table with 1000x1000 cells. It works, but if I enlarge the window and > scroll a little bit the memory consumption of the program jumps to the > skies (If I weren'

[PyQt] Memory leak when using QAbstractTableModel

2007-12-20 Thread Noam Raphael
Hello, I created a simple program which uses QAbstractTableModel to display a table with 1000x1000 cells. It works, but if I enlarge the window and scroll a little bit the memory consumption of the program jumps to the skies (If I weren't careful, my system would have stuck.) Here's the program.