QT_QML_싱글톤_유형

QML 파일이 싱글톤 유형을 제공하는 것으로 표시합니다.

이 속성은 Qt 6.2에 도입되었습니다.

싱글톤 유형을 제공하는 .qml 파일은 QT_QML_SINGLETON_TYPE 소스 속성을 TRUE 로 설정하여 싱글톤 명령이 qmldir 파일에 기록되도록 해야 합니다. 이 작업은 pragma Singleton 문이 포함된 QML 파일과 함께 수행해야 합니다. 싱글톤이 속한 모듈을 생성하기 전에 소스 속성을 설정해야 합니다.

QT_QML_SINGLETON_TYPE 속성을 설정하는 방법에 대한 예는 qt_target_qml_sources()를 참조하십시오.

qt_target_qml_sources도참조하십시오 .

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