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

string QML Value Type

a free form text string.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Detailed Description

The string type refers to a free form text string in quotes, e.g. "Hello world!".

Example:

 
Sélectionnez
Text { text: "Hello world!" }

Strings have a length attribute that holds the number of characters in the string.

QML extends the JavaScript String type with a arg() function to support value substitution.

When integrating with C++, note that any QString value passed into QML from C++ is automatically converted into a string value, and vice-versa.

This value type is provided by the QML language.

See Also

See also QML Value Types

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