On Thursday 3 October 2024 08:07:20 GMT-7 Phil Thompson via Development wrote:
> > Or you can set the EnumOrFlag flag in the QMetaProperty flags field to
> > force the
> > constructor to search.
> 
> Sorry, can you be more specific? I can't see how to do it given the
> private nature of the flags.

Never mind, the condition is an OR. This needs both the flag set (which you say 
you're using) and a metatype to locate the meta enum.

The metatype arrayiis mandatory for properties since 6.0. In qtmocconstants.h:

// revision 9 is Qt 6.0: It adds the metatype of properties and methods

Additionally Metatypes for enums and properties are mandatory too. For 
methods, they are allowed to be nullptr.


-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel DCAI Platform & System Engineering

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-- 
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to