[PyQt] Represent inline struct?

Shaheed Haque srhaque at theiet.org
Sun Aug 27 09:49:32 BST 2017


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...).

Thanks, Shaheed


More information about the PyQt mailing list