[PyQt] Represent inline struct?

Shaheed Haque srhaque at theiet.org
Sun Aug 27 15:10:13 BST 2017


On 27 August 2017 at 11:28, Phil Thompson <phil at riverbankcomputing.com> wrote:
> 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.

Thanks for confirming.

> Phil


More information about the PyQt mailing list