Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
5.0.0, 5.1.1
-
None
-
54f0733e7df4134afbcf0a81ba39751f31c9b84d
Description
Currently QML only supports non local enums as Q_PROPERTY if they are declared in the same class or if they are re-declared with Q_ENUMS. For example:
struct EnumHolder : public QObject { enum Enum { Value1, ... }; }; struct Foo : public QObject { Q_ENUMS(EnumHolder::Enum); // this should not be needed! Q_PROPERTY(EnumHolder::Enum property READ property WRITE setPproperty NOTIFY ...) ... };
Item { Foo { property: EnumHolder.Value1 } }
Without Q_ENUMS(EnumHolder::Enum); assignment in QML would not work (reading is ok)
Attachments
Issue Links
- resulted in
-
QTBUG-35657 [REG] 5.3/dev-branch: Qt Designer warns about unregistered enum types
- Closed