Marks a QML file as providing a singleton type.
This property was introduced in Qt 6.2.
.qml file that provides a singleton type needs to have its
QT_QML_SINGLETON_TYPE source property set to
TRUE to ensure that the singleton command is written into the qmldir file. This must be done in addition to the QML file containing the
pragma Singleton statement.
See qt_target_qml_sources() for an example on how to set the
See also qt_target_qml_sources.
© 2022 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.