[PyKDE] Model indexes and internal pointers

Hans-Peter Jansen hpj at urpla.net
Sat Aug 19 09:43:02 BST 2006


Am Samstag, 19. August 2006 01:39 schrieb Arve Knudsen:
> On 8/17/06, Phil Thompson <phil at riverbankcomputing.co.uk> wrote:
> > Having looked at this yet again it's clear that it's not possible
> > to implement this without leaking Python references. I don't know
> > why I thought it was possible at one stage.
> >
> > The obvious problems are the lack of virtual dtor (so there is no
> > place to reliably decrement the reference count) and the assignment
> > operator (so the reference count won't get incremented when Qt
> > assigns instances internally).
> >
> > For the same reasons it's not possible to do anything with
> > QPersistentModelIndex.
>
> Oh .. Too bad, guess we'll have to live with this :\
>
> Arve

Nope, it's your call to find the right tree to bark up..

Pete




More information about the PyQt mailing list