[PyQt] QModelIndex.internalPointer() is a weak reference ?

Phil Thompson phil at riverbankcomputing.com
Mon Jan 19 10:37:20 GMT 2009


On Mon, 19 Jan 2009 00:40:38 +0100, Luper Rouch <luper.rouch at gmail.com>
wrote:
> Hi,
> 
> I have to maintain references to the objects passed to QModelIndex or I 
> get segfaults (and all kinds of other weird results) when accessing them 
> via internalPointer(), which makes me either think the reference 
> counting is broken or that indices store weak references...
> 
> Is this intended ? I'm using ubuntu 8.10 packages (PyQt and Qt 4.4.3)

It's a feature rather than a bug, but it will be changed as part of the
Roadmap development.

Phil


More information about the PyQt mailing list