Quick: Attached property type

[Quick.attached-property-type] Misuses of the Quick attached property types.

This warning category is spelled [Quick.attached-property-type] by qmllint.

Attached property must be attached to an object deriving from a particular type

What happened?

You instantiated an attached property in an object of the wrong type.

Why is this bad?

The attached property will not work.

Example

To fix this warning, change the enclosing type to inherit from the type mentioned in the warning message: