Hi Andreas,

On Mon, Apr 13, 2009 at 9:58 AM, Andreas Pakulat <ap...@gmx.de> wrote:

> On 13.04.09 14:11:46, Arnold Krille wrote:
> > It is a pointer for internal purposes, that is internal for the model
> > so it can map indexes to the internal data structures. (And yes, that
> > is needed for anything except simple list or table models.:)
>
> <nitpick>Thats not true actually, you can create the most complex model
> imaginable without using the internalPointer, simply by using the
> internalId and the related createIndex overload. That also automatically
> solves any problems created by python's refcounting+garbage collection
> (if you forget to store a reference to an object for the model in your
> model)
>

Could you please sugggest an example of this approach, if you know of one? I
started a thread on March 10 on this mailing list ("seeking advice on why
this script segfaults") where I put together an unsatisfying work around to
avoid segfaults that were probably caused by my use of internalPointer.

Thanks,
Darren
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to