QT_QML_SINGLETON_TYPE
QML 파일이 싱글톤 타입을 제공함을 나타냅니다.
이 속성은 Qt 6.2에서 도입되었습니다.
싱글톤 타입을 제공하는 ` .qml ` 파일의 경우, ` QT_QML_SINGLETON_TYPE ` 소스 속성을 ` TRUE `로 설정하여 싱글톤 명령어가 ` qmldir ` 파일에 기록되도록 해야 합니다. 이는 ` pragma Singleton ` 문이 포함된 QML 파일 설정 외에도 반드시 수행해야 합니다. `source` 속성은 싱글톤이 속할 모듈을 생성하기 전에 설정해야 합니다.
QT_QML_SINGLETON_TYPE 속성을 설정하는 방법에 대한 예제는 qt_target_qml_sources() 를 참조하십시오.
qt_target_qml_sources도 참조하십시오 .
© 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.