[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] QModelIndex.internalPointer
From:       "Hans-Peter Jansen" <hpj () urpla ! net>
Date:       2011-05-22 20:17:10
Message-ID: 201105222217.10610.hpj () urpla ! net
[Download RAW message or body]

On Sunday 22 May 2011, 11:42:38 Phil Thompson wrote:
> On Sun, 22 May 2011 02:23:35 +0200, "Hans-Peter Jansen"
> <hpj@urpla.net>
>
> wrote:
> > On Wednesday 18 May 2011, 16:03:59 Andrei Kopats wrote:
> >> Here is example.
> >> Unfortunately, with it I can reproduce crash only if reference to
> >> integer was passed to createIndex()
> >>
> >> In the attachment you can find test script, and execution log. The
> >> log also contains my system info.
> >
> > Confirmed, and from what I can see, this should not happen.
> > Mind converting it to C++, and posting code and results here, just
> > to exclude an Qt issue?
>
> It's working as intended. If you pass an int then it is assumed that
> this is a memory address, otherwise it is assumed to be a borrowed
> reference to a Python object.
>
> If you want an int to be interpreted differently then wrap it in a
> class.

Okay, that makes sense. Thanks for the clarification.

I would have supplied a doc patch for this matter, but couldn't locate 
the doc source. Guess, it is generated from the Qt docs directly..

Pete
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic