중복된 이름

이 경고 카테고리의 철자는 [duplicated-name] 입니다.

중복된 속성 이름

무슨 일인가요?

동일한 QML 컴포넌트 범위에 있는 여러 프로퍼티의 이름이 동일합니다.

이것이 왜 나쁜가요?

프로퍼티 이름이 중복된 컴포넌트는 런타임에 생성되지 않고 대신 null이 됩니다.

예시

import QtQuick

Item {
    property int helloWorld
    property int helloWorld
}

이 경고를 해결하려면 중복 프로퍼티를 제거하거나 이름을 바꾸세요:

import QtQuick

Item {
    property int helloWorld
}

중복된 신호 mame

무슨 일이 있었나요?

동일한 QML 컴포넌트 스코프에 있는 여러 신호의 이름이 동일합니다.

이것이 왜 나쁜가요?

신호 이름이 중복된 컴포넌트는 런타임에 생성되지 않고 대신 null이 됩니다.

예시

import QtQuick

Rectangle {
    signal helloWorld
    signal helloWorld
}

이 경고를 해결하려면 중복된 신호를 제거하거나 이름을 바꾸세요:

import QtQuick

Rectangle {
    signal helloWorld
}

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