[PyQt] QModelIndex.internalPointer

Hans-Peter Jansen hpj at urpla.net
Thu May 5 10:09:05 BST 2011

On Friday 29 April 2011, 09:59:40 Andrei Kopats wrote:
> Hi,
> Few days ago QModelIndex.internalPointer was discussed here.
> I also have problems with it. I can't say exactly, when crash occurs,
> and when it doesn't, but, this code generates crash for me:
>             index = self.createIndex(row, column, True)
>             print index.internalPointer()
> I tried to pass object (which has other references, so, is not
> destroyed by gc), integer, bool value as internalPoitner, and have
> crashes in any case. I use the latest PyQt and SIP snapshots.

You need to provide a minimal runnable example, and describe the 
procedure to provoke the failure.

Don't forget to mention your environment, and paste in python and gdb 


More information about the PyQt mailing list