Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
dev
-
None
-
dfa51fe0b (dev), ae018e9a6 (6.6), d3f60adda (6.5)
Description
When running qmllint on the Qt Quick3D example "customeffects" I got several [read-only-property] when we set values to SceneEnvironment.effects.
https://doc.qt.io/qt-6/qml-qtquick3d-sceneenvironment.html#effects-prop
To reproduce just run the linter on this file/project:
https://code.qt.io/cgit/qt/qtquick3d.git/tree/examples/quick3d/customeffect/main.qml#n184
And the property is defined here:
https://code.qt.io/cgit/qt/qtquick3d.git/tree/src/quick3d/qquick3dsceneenvironment_p.h#n66
It appears to be fine to set the property statically via the component, but if you try and set it to an array in a JS block the linter gets upset and throws the warning. The above QML file does both.