Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
5.15.0, 6.0.0
-
None
Description
https://doc.qt.io/qt-6/qml-enumeration.html talks about using enums declared in C++. At the very bottom, there is a vague link that says "Enumeration Attributes" that explains how to actually declare enums in QML.
As https://doc.qt.io/qt-6/qml-enumeration.html is the only relevant result on the first page of Google's search results, someone wanting to know how to declare enums in QML is likely going to go back to the search results and visit the Stack Overflow link before seeing the Enumeration Attributes link at the bottom:
At the very beginning of the page, we should state that there are two ways to use enums, and give each approach its own section. It might even be worthwhile moving the content under https://doc.qt.io/qt-6/qtqml-syntax-objectattributes.html#enumeration-attributes to this page and just linking to this page from that one, since this one is more visible in search results.
Attachments
Issue Links
- resulted from
-
QTBUG-14861 Allow enum types to be defined from QML side
- Closed