[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] SIP template
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2017-08-14 16:22:11
Message-ID: 60681427-2F0F-4C21-A633-D24E6B2C5DE8 () riverbankcomputing ! com
[Download RAW message or body]
On 14 Aug 2017, at 11:13 am, Shaheed Haque <srhaque@theiet.org> wrote:
> I'm still working on variations of this topic. The problem I am having at the \
> moment is that a sequence like this, where Bar has a base which is a %MappedType:
> =======
> %Module(name=xxx)
>
> %MappedType FooBad
> {
> %ConvertFromTypeCode
> // blah.
> %End
> %ConvertToTypeCode
> // blah.
> %End
> };
>
> class FooOK
> {
> public:
> FooOK();
> };
>
> class Bar: FooBad
> { <<<<<<<<<<<<<<<< This is line 20
> public:
> Bar();
> };
> =======
>
> gives the error "sip: tmp.sip:20: A class, exception, namespace or mapped type has \
> already been defined with the same name" but if I change the base class from FooBad \
> to the non-%MappedType normal class FooOK, it compiles just fine. I'm on \
> 4.19.4.dev1708081632...have I gone mad?
It's a terrible error message, but you can't sub-class from mapped types.
Phil
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic