Recursion depths errors

[recursion-depth-errors] Qml statement or expression is too deeply nested.

This warning category is spelled [recursion-depth-errors] by qmllint.

Maximum statement or expression depth exceeded

What happened?

A QML statement or expression was too deeply nested for the compiler. This usually only happens for generated code where statements or expressions can be very long, as the recursion limit is usually large enough for any sensible QML document.

Why is this bad?

The QML engine will not be able to run this code.

Example

To fix this warning, auto-generate smaller code pieces. Split deeply nested Components in multiple files or inline components, or split deeply nested expressions into multiple expressions: