이 페이지에서

간단히: 첨부 속성 유형

qmllint에서는 이 경고 범주를 ‘ [Quick.attached-property-type] ’로 표기합니다.

부착 속성은 특정 유형에서 파생된 객체에 부착되어야 합니다

무슨 일이 발생했나요?

잘못된 유형의 객체에서 부착 속성을 인스턴스화했습니다.

이것이 왜 문제일까요?

부착 속성이 작동하지 않습니다.

예시

import QtQuick

Item {
    QtObject {
        LayoutMirroring.enabled: true
    }
}

이 경고를 해결하려면, 해당 경고를 감싸고 있는 유형을 경고 메시지에 언급된 유형을 상속받도록 변경하십시오:

import QtQuick

Item {
    Item {
        LayoutMirroring.enabled: true
    }
}

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