이중화된 이름
qmllint에서는 이 경고 범주를 ' [duplicated-name] '로 표기합니다.
중복된 속성, 신호 또는 메서드 이름
무슨 일이 발생했나요?
현재 QML 컴포넌트에서 이미 사용 중인 이름을 속성, 시그널 또는 메서드에 지정했습니다.
이것이 왜 문제인가요?
QML Runtime은 런타임 시 중복된 멤버 이름을 가진 컴포넌트를 생성하지 않으며, 대신 null로 처리합니다.
예
import QtQuick
Item {
property int helloWorld
property int helloWorld // duplicate property
signal helloWorld() // duplicate signal
}이 경고를 해결하려면 중복된 멤버를 제거하거나 이름을 변경하십시오:
© 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.