QTP0004

QML 모듈에 QML 파일이 있는 추가 디렉터리에는 추가 qmldir 파일이 필요합니다.

이 정책은 Qt 6.8에 도입되었습니다. 이 정책은 빌드 시스템에서 QML 모듈의 QML 파일이 포함된 각 추가 디렉터리에 대해 추가 qmldir 파일을 생성하도록 합니다.

이 정책을 활성화하면 모듈에 있는 각 QML 컴포넌트의 암시적 임포트가 모듈 자체와 동일하게 이루어집니다. 즉, 모듈을 명시적으로 가져오지 않고도 모든 컴포넌트가 서로를 볼 수 있습니다.

이 정책의 OLD 동작은 모듈의 루트 디렉터리에 대해서만 qmldir 파일이 생성된다는 것입니다.

이 정책의 NEW 동작은 모듈의 QML 파일이 있는 각 디렉터리에 대해 별도의 qmldir 파일을 생성하는 것입니다.

이 정책을 명시적으로 설정하지 않으면 Qt 6.8에서 경고를 표시합니다.

참고: 정책의 OLD 동작은 더 이상 사용되지 않으며 향후 제거될 수 있습니다.

qt_policy, qt_standard_project_setup(), qt_cmake_policiesqt_add_qml_module도참조하십시오 .

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