IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QT_QML_SINGLETON_TYPE

Marks a QML file as providing a singleton type.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QT_QML_SINGLETON_TYPE

Marks a QML file as providing a singleton type.

This property was introduced in Qt 6.2.

A .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 QT_QML_SINGLETON_TYPE property.

See Also

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+