qt_qml_singleton_type
QML ファイルがシングルトン型であることを示す。
このプロパティは Qt 6.2 で導入されました。
シングルトン・タイプを提供する.qml
ファイルは、シングルトン・コマンドがqmldirファイルに書き込まれるように、QT_QML_SINGLETON_TYPE
source プロパティをTRUE
に設定する必要があります。これは、pragma Singleton
ステートメントを含む QML ファイルに加えて行う必要があります。source プロパティは、シングルトンが属するモジュールを作成する前に設定する必要があります。
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.