[PyQt] Parent child relationship: child survives parent

2013-07-12 Thread Volker Pilipp
I've got a little bit confused about ownership of objects in SIP As far as I understand, if ParentObject owns ChildObject, the destruction of ChildObject is left to c++ i.e. the c++ destructor of ParentObject is expected to destruct ChildObject. This behaviour may result in a seg fault if the

Re: [PyQt] Parent child relationship: child survives parent

2013-07-12 Thread Phil Thompson
On Fri, 12 Jul 2013 09:30:46 +0200, Volker Pilipp volker.pil...@dectris.com wrote: I've got a little bit confused about ownership of objects in SIP As far as I understand, if ParentObject owns ChildObject, the destruction of ChildObject is left to c++ i.e. the c++ destructor of ParentObject