[Development] Changed enum property behaviour in Qt v6.8
Thiago Macieira
thiago.macieira at intel.com
Sat Oct 5 22:58:16 CEST 2024
On Saturday 5 October 2024 10:16:49 GMT-7 Phil Thompson via Development wrote:
> Looking at the QMetaObjectBuilder source I can't see where the QMetaType
> passed to setMetaType() is actually used. As far as I can tell the enum
> meta-types should be stored immediately after the property meta-types in
> the QMetaObject data. However if you look at the relevant part of
> qobjectmetaobjectbuilder.cpp (lines 1411 to 1441) you can see that no
> enum meta-types are stored and a nullptr (for the QMetaObject's
> meta-type) immediately follows the property meta-types. As my test case
> only has one enum I think that it's seeing that nullptr as its
> meta-type.
>
> As QML defined enum properties are not allowed, would that mean that
> this code wouldn't have been exercised?
Correct.
QMOB is emitting current-version meta objects (as of this week, 13), which
requires that QMetaEnums have their meta objects.
--
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/20241005/ec67c421/attachment.bin>
More information about the Development
mailing list