[Development] Changed enum property behaviour in Qt v6.8
Thiago Macieira
thiago.macieira at intel.com
Fri Oct 4 04:07:18 CEST 2024
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20241003/f152e131/attachment.bin>
More information about the Development
mailing list