QT_EXCLUDE_FROM_TRANSLATION
이 속성은 Qt 6.7에서 도입되었습니다.
이 타깃 속성을 ` ON `로 설정하면 번역 대상에서 제외됩니다. ` qt_collect_translation_source_targets() ` 명령은 이러한 타깃을 건너뜁니다.
하위 디렉터리 아래의 모든 타깃을 제외하려면 디렉터리 속성 QT_EXCLUDE_FROM_TRANSLATION을 사용하십시오.
예시
다음 예제에서는 mytest 타깃에서 번역 가능한 문자열이 추출되지 않습니다.
qt_add_executable(myapp main.cpp)
qt_add_executable(mytest test.cpp)
set_property(TARGET mytest PROPERTY QT_EXCLUDE_FROM_TRANSLATION ON)
qt_add_translations(myapp)QT_EXCLUDE_SOURCES_FROM_TRANSLATION항목도 참조하십시오 .
© 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.