[Qt-interest] Q_DECLARE_METATYPE, qRegisterType, and threads...
Alan Ezust
alan.ezust at gmail.com
Thu Nov 18 23:31:59 CET 2010
> Problem is, I've declared it several ways that should make it valid to the
> meta-object system:
>
> yourEnum {
> ...
> };
> Q_DECLARE_METATYPE(yourEnum)
> Q_ENUMS(yourEnum)
> ...
>
> Note: The above is _not_ in a class definition but a shared header.
>
I don't think Q_ENUMS works on an enumerated type that is not a member
of an actual Q_OBJECT class.
I tried that before and failed. Your enumerated type must be a member
of a class that is processed by moc.
More information about the Qt-interest-old
mailing list