引用

この警告カテゴリーはqmllintによって[syntax.id-quotation]

IDに引用符は必要ありません。

何が起こったのですか?

idを引用符で囲みました。

これはなぜ悪いのですか?

これはidと文字列の混同を引き起こす可能性があります。QML言語では、idに引用符は必要ありませんし、idに対するより複雑な文字列表現も禁止されています。

import QtQuick

Item {
    id: "root"
}

この警告を修正するには、引用符を削除してください:

import QtQuick

Item {
    id: root
}

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