[Interest] Q_GADGET and Q_MOVABLE_TYPE

Thiago Macieira thiago.macieira at intel.com
Fri Aug 21 17:59:33 CEST 2015


On Friday 21 August 2015 12:00:58 Lorenz Haas wrote:
> class Foo {
> Q_GADGET
> public:
>   enum Bar {/*...*/};
>   Q_ENUM(Bar)
> };
> Q_DECLARE_TYPEINFO(Foo, Q_MOVABLE_TYPE);
> 
> Is it still a movable type. I am lost in the sources and all the
> QMetaEnum, QMetaClassInfo etc.

Yes, it is. It added static members only to your class.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list