Readonly property

[read-only-property] A readonly property was written.

This warning category is spelled [read-only-property] by qmllint.

Cannot assign to read-only property

What happened?

A read-only property was written.

Why is this bad?

The QML engine will throw a Type Error when it sees the write to a read-only property.

Example

To fix this warning, remove the write to the read-only property, write to another non-read-only property, or remove the readonly modifier if you are the author of the property definition.