Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
5.14.2
Description
Defining a property of an enum type
import QtQuick 2.0 Item { enum Status { On, Off } id: root property Test.Status status: Test.Status.Off }
Produces given error at runtime:
qrc:/Test.qml:9:5: Test.Status - Test is not a namespace
Enums as properties should be allowed.
Attachments
Issue Links
- duplicates
-
QTBUG-15483 Allow using enums as properties in QML
-
- Open
-