QT_DISCARD_FILE_CONTENTS
리소스 파일 시스템에서 지정된 파일을 비우도록 지정합니다.
이 프로퍼티는 Qt 6.6에 도입되었습니다.
참고: 이 프로퍼티는 기술 프리뷰에 있으며 향후 릴리스에서 변경될 수 있습니다.
qt_add_resources 또는 qt_add_qml_module의 대상 기반 변형을 사용하는 경우 이 속성을 TRUE
로 설정하면 리소스 파일 시스템을 만들 때 파일 내용이 생략됩니다. 파일 이름은 유지됩니다.
이 옵션은 바이너리에서 QML 소스 코드를 제거하려는 경우에 유용합니다.
참고: 바이너리에서 QML 소스 코드를 생략하면 QML 엔진은 qmlcachegen 또는 qmlsc에서 만든 컴파일 단위에 의존해야 합니다. 이러한 컴파일 유닛은 빌드된 특정 Qt 버전과 연동됩니다. 애플리케이션에서 사용하는 Qt 버전을 변경하면 더 이상 로드할 수 없습니다.
Qt 리소스 시스템도참조하십시오 .
© 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.