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