Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.0, 6.2
-
None
Description
Given a QObject derived class defining a QFlag like this:
class TestObject : public QObject { Q_OBJECT enum TestFlag { Value1 = 0x1, Value2 = 0x2 } Q_DECLARE_FLAG(TestFlags, TestFlag) Q_FLAG(TestFlags) }
When trying to retrieve the typename using QMetaObject the value has changed from Qt 5.13 to Qt6:
QMetaType::typeName(QMetaTypeId<TestObject::TestFlags>());
With 5.13 this returns: TestObject::TestFlags
Qt 6 returns: QFlags<TestObject::TestFlag>
Attachments
Issue Links
- relates to
-
QTBUG-101426 QMetaObjectBuilder does not properly carry property flags
- Reported
- mentioned in
-
Page Loading...
Gerrit Reviews
For Gerrit Dashboard: QTBUG-83664 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
399035,6 | QMetaType: use flag name as name in metatype (for Q_FLAG without s) | dev | qt/qtbase | Status: NEW | 0 | 0 |