[PyQt] PyQt4 memory leak

2013-07-15 Thread David Aguilar
Matti Aarnio reported a memory leak in git-cola that I traced back to PyQt4. I've attached a minimal reproducer. I've tested this on Mac OS X and Debian/testing with PyQt4 4.9.x. Matti's tried it on x86_64 Fedora 18, we see the same behavior there. Everytime we hit the Refresh button more

[PyQt] QTreeView and custom QStandardItemModel loses its Python counterparts

2013-04-29 Thread David Aguilar
We're seeing a change in behavior in the latest PyQt4. We have a custom QStandardItemModel with custom QStandardItems. It is being used by a QTreeView. When calling tree.invisibleRootItem().child(i) we are getting back QtGui.QStandardItem instances instead of our custom classes. This seemed

Re: [PyQt] QTreeView and custom QStandardItemModel loses its Python counterparts

2013-04-29 Thread David Aguilar
David Aguilar davvid at gmail.com writes: We're seeing a change in behavior in the latest PyQt4. We have a custom QStandardItemModel with custom QStandardItems. It is being used by a QTreeView. When calling tree.invisibleRootItem().child(i) we are getting back QtGui.QStandardItem

Re: [PyQt] QTreeView and custom QStandardItemModel loses its Python counterparts

2013-04-29 Thread David Aguilar
Phil Thompson phil at riverbankcomputing.com writes: On Mon, 29 Apr 2013 20:41:46 + (UTC), David Aguilar davvid at gmail.com wrote: We're seeing a change in behavior in the latest PyQt4. When calling tree.invisibleRootItem().child(i) we are getting back QtGui.QStandardItem instances