Here is example.<br>
Unfortunately, with it I can reproduce crash only if reference to integer was passed to createIndex()<br>
<br>
In the attachment you can find test script, and execution log. The log also contains my system info.<br>
<br>
Regards,<br>
Andrei Kopats<br><br><div class="gmail_quote">2011/4/29 Andrei Kopats <span dir="ltr"><<a href="mailto:hlamer@tut.by">hlamer@tut.by</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
Few days ago QModelIndex.internalPointer was discussed here.<br>
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:<br>
<br>
index = self.createIndex(row, column, True)<br>
print index.internalPointer()<br>
<br>
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.<br>
I use the latest PyQt and SIP snapshots.<br>
<br>
Is there a way for workaround this?<br>
<br>
Thanks
</blockquote></div><br>