QML Lint Warning and Errors

Here is an overview over all QML Lint warning and error messages.

Alias cycle

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

Attached property reuse

[attached-property-reuse] Attached type was initialized multiple times.

Cannot access singleton as a property of an object

[access-singleton-via-object] A singleton was incorrectly accessed.

Component is missing a required property

[required] A component's required property was not bound.

Deprecated

[deprecated] A deprecated property or type was used.

Duplicate bindings

[duplicate-property-binding] A property was bound multiple times.

Duplicate id

[syntax.duplicate-ids] An id is not unique.

Duplicated name

[duplicated-name] Multiple signals or properties share the same name in the same Component.

Id quotation

[syntax.id-quotation] Id has quotation marks.

Incompatible type

[incompatible-type] An object, value, or expression is used on an incompatible type.

Inheritance cycle

[inheritance-cycle] A component inherits from itself.

Invalid qmllint directives

[invalid-lint-directive] Invalid qmllint comments.

Missing enum entry

[missing-enum-entry] Enum value is missing from its declaration.

Missing property

[missing-property] Binding a value to a non-existing property.

Missing type

[missing-type] A type used in a binding or alias was not found.

Multiline strings

[multiline-strings] A string is spanning over multiple lines.

Non-list property

[non-list-property] Multiple values were assigned to a non-list property.

Quick: Attached property type

Misuses of the Quick attached property types.

Readonly property

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

Recursion depths errors

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

Restricted type

[restricted-type] A restricted type was accessed.

Signal handler parameters

[signal-handler-parameters] The signal handler does not satisfy the signal types.

Syntax

[syntax] Various syntactic errors.

Top level component

[top-level-component] Root QML type is a component

Uncreatable type

[uncreatable-type] Types that can't be created.

Unqualified

[unqualified] Accessing an outer scope without its id.

Unresolved alias

[unresolved-alias] Property of property alias was not found.

Unresolved type

[unresolved-type] A used type was not found.

Unused imports

[unused-imports] Types of the imported module were not used.

Use proper function

[use-proper-function] Calling something that might not be a function.

Var used before declaration

[var-used-before-declaration] A JavaScript variable was used before its declaration.

Warnings occurred while importing

[import] The imported module was not found.

With

[with] With statements are strongly discouraged in QML.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.