[PyKDE] sip: copy constructors
Phil Thompson
phil at riverbankcomputing.co.uk
Wed Dec 24 20:52:00 GMT 2003
On Wednesday 17 December 2003 9:32 am, Patrick Stinson wrote:
> why is it that sip tries to pass a 'const' object reference into a copy
> constructor? This is, in the first place, painful for class w/o copy
> constructors, it also leads one to a bit of confusion as to the correct way
> to add one in, or keep sip from generating that code.
SIP does that because (correct me if I am wrong) that's what C++ does if you
don't specify your own copy ctor.
To prevent SIP doing it declare a private copy ctor in your .sip file. PyQt
does this for every widget.
Phil
More information about the PyQt
mailing list