Re: [PyQt] SIP - Managing ownership of objects in a QList

2013-06-27 Thread Matthias Kuhn
I just realized, that this is the PyQt and not the QGIS list. The code mentioned can be found on github [1] If you find another (better) solution, I'll be very happy. The only problem I encountered with the approach taken was that I initially forgot to increase the reference counter to Py_None.

Re: [PyQt] SIP - Managing ownership of objects in a QList

2013-06-27 Thread Matthias Kuhn
Hi Michael, That's pretty much what is done in QgsAttributes (see qgsfeature.sip in the current master branch) Regards, Matthias On Fre 28 Jun 2013 04:07:59 CEST, michael h wrote: > I am attempting to figure out the best way make SIP transfer ownership > of items inside a QList to python. > > B