无效的 qmllint 指令
qmllint 将此警告类别拼写为[invalid-lint-directive] 。
提供的 qmllint 指令无效
发生了什么?
您在 qmllint 注释中使用了无效的qmllint 指令。这很可能是由于输入错误造成的。
为什么这有问题?
该 qmllint 指令将不起作用。
示例
import QtQuick
Item {
// qmllint diasble with
}要解决此警告,请更正拼写错误:
import QtQuick
Item {
// qmllint disable with
}未知类别的 qmllint 指令
发生了什么?
您在 qmllint 注释内的qmllint 指令中使用了一个未知类别。这很可能是由于输入错误造成的。
为什么这样不好?
该 qmllint 指令将无法生效。
示例
import QtQuick
Item {
// qmllint disable woth
}要解决此警告,请更正拼写错误:
import QtQuick
Item {
// qmllint disable with
}© 2026 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.