qmlweb/qmlweb-parser

Readonly properties support

Opened this issue · 2 comments

Not sure if that should be a separate element or a modifier of qmlpropdef.

A separate element will require another patch in QmlWeb to be supported.
A modifier perhaps could work without patches on QmlWeb side (without actually enforcing the «readonly» rule), but I am not sure how a modifier should look like here.

The readonly property is important to stay compatible with Qt QML. I would implement it using a modifier for qmlpropdef. I don't think a separate element is necessary.