[PyKDE] C++ signature/undefined types

Phil Thompson phil at riverbankcomputing.co.uk
Sun Jul 31 17:11:33 BST 2005

> Given the following sip fragment...
> class Foo
> {
>   virtual void bar( SIP_PYOBJECT ) [void (UnwrappedType)];
> %MethodCode
>   // ...
> %End
> %VirtualCatcherCode
>   // ...
> %End
> };
> Sip will compain about UnwrappedType not being defined.  I don't
> believe it should need to be defined in the presence of the
> %VirtualCatcherCode, as it is only used verbatim in the method's
> argument list.
> I had a look at relaxing this restriction myself, but given my limited
> experience with sip internals, this change seems non-trivial.
> Is it possible to relax the type checking for C++ signatures in the
> presence of hand written virtual handler code?

I'll add it to the TODO list, but I won't get around to it soon.

The easiest workaround is to define it as a %MappedType and provide dummy
type convertors.


More information about the PyQt mailing list