[C++-sig] Can boost.python and PyQt be used together?
dave at boost-consulting.com
Sat Dec 7 23:48:52 CET 2002
"Paul F. Kunz" <Paul_Kunz at SLAC.Stanford.EDU> writes:
>>>>>> On Sat, 07 Dec 2002 16:58:05 -0500, David Abrahams <dave at boost-consulting.com> said:
>> the above cast is valid?
> Yes, it works from Python (when used without the SIP application).
>> Ummm... this looks very wrong to me. I presume newCanvas allocates a
>> new object? Why are you using reference_existing_object for that? It
>> will be leaked if you do it that way... though that shouldn't cause
>> the crash you're seeing, of course.
> The WindowController owns all CanvasWindows. The calling object
> may add objects into the window and make enquires.
You might consider return_internal_reference, then.
dave at boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
More information about the Cplusplus-sig