[PyQt] Represent inline struct?

Phil Thompson phil at riverbankcomputing.com
Sun Aug 27 11:28:47 BST 2017


On 27 Aug 2017, at 9:49 am, Shaheed Haque <srhaque at theiet.org> wrote:
> 
> Hi,
> 
> Is there a straightforward way to represent the following inline
> struct-variable N::Foo::bar in SIP:
> 
> ========
> namespace N
> {
> class Foo
> {
> public:
>    struct {
>        int a;
>        int b;
>    } bar;
> };
> };
> ========
> 
> A non-straightforward way might involve defining intermediate typedefs
> and the like, but if there a  known recipe for that which does not
> involve modifying the original C++, I'd be interested in that too
> (AFAICS, there is the usual problem of trying to inject stuff into the
> C++ namespace...).

Sorry, no.

Phil


More information about the PyQt mailing list