- Qt 6.10
- Qt Qml
- QML Lint Warning and Errors
- Qt 6.10.1 Reference Documentation

Upgrade from Qt 5 ◦ CMake Global Properties

# 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.
Comma | [comma] Do not use comma expressions.
Component is missing a required property | [required] A component's required property was not bound.
Confusing minuses | [confusing-minuses] Confusing minuses.
Confusing pluses | [confusing-pluses] Confusing pluses.
Deprecated | [deprecated] A deprecated property or type was used.
Do not use void in expressions | [void] A void expression was used.
Duplicate Imports | [duplicate-import] Duplicate import.
Duplicate bindings | [duplicate-property-binding] A property was bound multiple times.
Duplicate enum entries | [duplicate-enum-entries] Enum key X has already been declared.
Duplicate id | [syntax.duplicate-ids] An id is not unique.
Duplicate inline components | [duplicate-inline-components] Duplicate inline component.
Duplicated name | [duplicated-name] Multiple signals or properties share the same name in the same Component.
Enum declared outside the root element | [non-root-enum] An enum was declared outside the root element.
Enum entry matches enum | [enum-entry-matches-enum] Enum entry should be named differently than the enum itself.
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.
Literal constructor | [literal-constructor] Do not use function as a constructor.
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 | [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.
Redundant Optional Chaining | [redundant-optional-chaining] Some optional chaining lookups could be non-optional
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.
Unterminated non-empty case block | [unterminated-case] A non-empty case block was not terminated.
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.
Warn about using assignment in conditions | [assignment-in-condition] An assignment statement is used inside a condition
Warnings occurred while importing | [import] The imported module was not found.
With | [with] With statements are strongly discouraged in QML.

Upgrade from Qt 5 ◦ CMake Global Properties