[PyQt] Support for std::?

Phil Thompson phil at riverbankcomputing.com
Tue Jan 10 14:41:32 GMT 2017


On 10 Jan 2017, at 2:29 pm, Shaheed Haque <srhaque at theiet.org> wrote:
> 
> Sorry, not sure how the word "syntax" crept in there, I intended to
> just say "errors". But I'm not sure I follow your second sentence:
> there is no SIP definition of std::exception, so the "lack of a
> definition" part is not surprising. Are you saying that just adding a
> %MappedType will suppress the "or the type"? I tried both:
> 
> %MappedType std::exception
> {
> }
> 
> and
> 
> %MappedType Akonadi::Exception
> {
> }

Every non-fundamental type that SIP sees must have a definition, either a class, struct, %Exception or %MappedType. Obviously I don't know what's appropriate in your case or what has aleady been defined in your .sip files.

> but both resulted in "sip: tmp/AkonadiCore/Exception.sip:62: A class,
> exception, namespace or mapped type has already been defined with the
> same name". What have I missed?

Phil


More information about the PyQt mailing list