Alias cycle

[alias-cycle] Alias property is part of an alias cycle.

This warning category is spelled [alias-cycle] by qmllint.

Alias property is part of an alias cycle

What happened?

A property alias resolves to itself or to another alias resolving to itself.

Usually, a property alias should reference another property either directly, or indirectly by passing through another alias property.

If a property alias directly or indirectly references itself, then it forms an alias cycle. The warning indicates that the current alias property is inside or references an alias cycle, see Example .

Why is this bad?

Instances of components with alias cycles will not be created at runtime: they will be null instead.

Example

To fix this warning, break up the alias cycles: