Details
-
Sub-task
-
Resolution: Done
-
P3: Somewhat important
-
None
-
22a2cc43387ec3b9f74a6c01f8665378a4541147
Description
Currently enumerations can only be defined on c++ side and exposed
for use on QML side. This is a problematic limitation for the Qt Components
implementation work. QML needs to allow enum types to be defined on
QML side too.
Ideally the implementation should also allow the use of enums as bit flags,
as demonstrated by the MouseArea's acceptedButtons property:
http://doc.qt.nokia.com/4.7/qml-mousearea.html#acceptedButtons-prop
Attachments
Issue Links
- relates to
-
QTBUG-54961 C++11 scoped enums are not scoped in QML
- Closed
- resulted in
-
QTBUG-89432 QML enum documentation should make a greater distinction between using enums declared in C++ and declaring enums in QML
- Reported