Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
5.7.0
-
None
Description
If I have something like the following code in C++
class MyClass : public QObject { Q_OBJECT public: enum class MyEnum : uint16_t { Val1, Val2, } Q_ENUM(MyEnum) ); // register the type
I'd like to use it in QML as:
console.log(MyClass.MyEnum.Val1)
not as
console.log(MyClass.Val1)
and will be even nicer, if we could use it as a type
property MyClass.MyEnum : MyClass.MyEnum.Val1
Attachments
Issue Links
- is required for
-
QTBUG-54982 Add a way to register Q_NAMESPACE enums to QML
- Closed
- relates to
-
QTBUG-14861 Allow enum types to be defined from QML side
- Closed