SIP - additional argument in constructor - derived class

Phil Thompson phil at riverbankcomputing.com
Tue Mar 9 14:00:52 GMT 2021


On 09/03/2021 13:44, Marian Thomsen wrote:
> Hello,
> 
> when I have an additional argument in a constructor of a derived class
> (this argument does not exist in my c++ base class) and try to
> translate this class with SIP v6.0.2 I get:
> 
> ctor argument 1 has an unsupported type for a Python signature -
> provide a valid type, %MethodCode and a C++ signature
> 
> How do I solve this with %MethodCode?
> Or is there another work-around?

It's not clear from your explanation what you mean. What are the actual 
signatures?

Phil


More information about the PyQt mailing list