QML Lint Warning and Errors

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

Alias Cycle

Alias property is part of an alias cycle.

Attached property reuse

Attached type was initialized multiple times.

Component is Missing a Required Property

A component's required property was not bound.

Deprecated

A deprecated property or type was used.

Duplicate Bindings

A property was bound multiple times.

Duplicate id

An id is not unique.

Duplicated Name

Multiple signals or properties share the same name in the same Component.

Id quotation

Id has quotation marks.

Inheritance Cycle

A component inherits from itself.

Invalid qmllint directives

Invalid qmllint comments.

Missing Type

A type used in a binding or alias was not found.

Missing enum entry

Enum value is missing from its declaration.

Multiline strings

A string is spanning over multiple lines.

Non-List Property

Multiple values were assigned to a non-list property.

Readonly Property

A readonly property was written.

Recursion Depths Errors

Qml statement or expression is too deeply nested.

Restricted type

A restricted type was accessed.

Signal Handler Parameters

The signal handler does not satisfy the signal types.

Syntax

Various syntactic errors.

Top level component

Root QML type is a component

Unqualified

Accessing an outer scope without its id.

Unresolved Alias

Property of property alias was not found.

Unresolved type

A used type was not found.

Unused imports

Types of the imported module were not used.

Use proper function

Calling something that might not be a function.

Var used before declaration

A JavaScript variable was used before its declaration.

Warnings Occurred While Importing

The imported module was not found.

With Statements

With statements are strongly discouraged in QML.

access-singleton-via-object

BRIEF

incompatible-type

BRIEF

missing-property

BRIEF

uncreatable-type

BRIEF

© 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.