[PyQt] Template class with private assignment operator

Phil Thompson phil at riverbankcomputing.com
Fri Apr 1 12:09:02 BST 2011

On Thu, 31 Mar 2011 11:03:14 +0200, Lorenzo Masini <rugginoso at develer.com>
> Hi everyone
> I have a %MappedType which has the operator= private.
> Sip generates assing_* code that uses the assignment operator, so the
> generated cpp doesn't compile.
> Is there a way to define the assign_* method in order to not use the
> assignment operator and raise a python exception instead?

Using the /NoRelease/ mapped type annotation will suppress the generation
of the assign_ helper, but it will also has an effect on calling the type's
dtor. Is that Ok, or is a separate /NoAssign/ annotation needed?


More information about the PyQt mailing list