이 페이지에서

ID 인용

qmllint에서는 이 경고 범주를 ' [syntax.id-quotation] '로 표기합니다.

ID에는 따옴표가 필요하지 않습니다

무슨 일이 있었나요?

ID 를 따옴표로 묶었습니다.

왜 문제가 될까요?

이로 인해 ID와 문자열이 혼동될 수 있습니다. QML 언어는 ID에 따옴표를 사용할 필요가 없으며, ID로 더 복잡한 문자열 표현을 사용하는 것을 금지합니다.

예시

import QtQuick

Item {
    id: "root"
}

이 경고를 해결하려면 따옴표를 제거하세요:

import QtQuick

Item {
    id: root
}

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