QML Lint 警告和错误
下面是所有 QML Lint 警告和错误信息的概览。
[alias-cycle] 别名属性是别名循环的一部分。 | |
[attached-property-reuse] 附加类型被多次初始化。 | |
[access-singleton-via-object]一个单例被错误访问。 | |
[required] 一个组件的 required 属性未绑定。 | |
[已废弃] 使用了已废弃的属性或类型。 | |
[重复绑定属性] 一个属性被多次绑定。 | |
[duplicate-ids] id 不唯一。 | |
[duplicated-name] 在同一组件中,多个信号或属性共享相同的名称。 | |
[syntax.id-quotation]Id 有引号。 | |
[incompatible-type]对象、值或表达式用于不兼容的类型。 | |
[inherance-cycle]组件从自身继承。 | |
[invalid-lint-directive] 无效的 qmllint 注释。 | |
[missing-enum-entry] 在声明中缺少枚举值。 | |
[missing-property] 将值绑定到不存在的属性。 | |
[missing-type] 未找到绑定或别名中使用的类型。 | |
[多行字符串] 字符串跨越多行。 | |
[非列表属性] 为一个非列表属性分配了多个值。 | |
错误使用 Quick 附加属性类型。 | |
[只读属性] 写入了一个只读属性。 | |
[递归深度错误] Qml 语句或表达式嵌套过深。 | |
[限制类型] 访问了一个限制类型。 | |
[信号处理器参数] 信号处理器不符合信号类型。 | |
[语法] 各种语法错误。 | |
[top-level-component] 根 QML 类型是一个组件。 | |
[uncreatable-type] 无法创建的类型。 | |
[unqualified]访问没有 id 的外层作用域。 | |
[unresolved-alias] 未找到属性别名的属性。 | |
[unresolved-type] 未找到已使用的类型。 | |
[unused-imports] 未使用导入模块的类型。 | |
[use-proper-function] 调用了一个可能不是函数的东西。 | |
[var-used-before-declaration] 一个 JavaScript 变量在声明之前被使用。 | |
[import] 未找到导入的模块。 | |
[with] QML 强烈反对使用 With 语句。 |
© 2025 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.