[PyQt] Smartpointer to Python

Arve Knudsen arve.knudsen at gmail.com
Mon May 26 13:10:11 BST 2008


Hi

Reading the SIP documentation I can't find any info on how C++ objects
are deleted (returned to the heap) from Python, only that their
destructor is called. Does this mean that when returning new'ed
pointers  to Python they should be managed by smartpointers? If so, is
there any mechanism in SIP for treating smartpointers as objects of
their managed type from Python?

Thanks,
Arve Knudsen


More information about the PyQt mailing list