[Development] Proposing to change https://wiki.qt.io/API_Design_Principles#Enums_in_classes to require scoped enums
Thiago Macieira
thiago.macieira at intel.com
Mon Jan 20 17:27:36 CET 2025
On Monday 20 January 2025 02:18:34 Pacific Standard Time Schimkowitsch Robert
wrote:
> As a user of Qt, I really hate this restriction.
It's a parsing problem. moc does not parse what it doesn't have to and thus
doesn't remember enumeration values that were outside the class.
> But what about Q_ENUM_NS and Q_FLAG_NS?
Those work, but they show up in the namespace's meta object and you must have
the Q_NAMESPACE macro.
--
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/20250120/f1d6a325/attachment.bin>
More information about the Development
mailing list