Re: [Interest] emi enum type that defined in class of namespace

2020-02-24 Thread Thiago Macieira
On Monday, 24 February 2020 17:22:16 PST nus1998 wrote: > Hi, > > > I have a piece of code like this: > namespace FOO_NS { > class FOO_CLASS : public QObject > { > Q_OBJECT > public: > enum FOO_EM { EM_A, EM_B }; > > signals: > void trigger(FOO_EM foo); > } > } > the signals doesn't

[Interest] emi enum type that defined in class of namespace

2020-02-24 Thread nus1998
Hi, I have a piece of code like this: namespace FOO_NS { class FOO_CLASS : public QObject { Q_OBJECT public: enum FOO_EM { EM_A, EM_B }; signals: void trigger(FOO_EM foo); } } the signals doesn't work obviously as enum doesn't be registered. if I add Q_ENUM(FOO_EM) after the enum de