아이디 따옴표

이 경고 카테고리의 철자는 [syntax.id-quotation] 입니다.

아이디에는 따옴표가 필요하지 않습니다.

무슨 일이 있었나요?

아이디를 따옴표로 묶었습니다.

이것이 왜 나쁜가요?

아이디와 문자열을 혼동할 수 있습니다. QML 언어에서는 아이디에 따옴표가 필요하지 않으며 아이디에 더 복잡한 문자열 표현식을 사용하는 것을 금지합니다.

예제

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.