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

String QML Type

The String object represents a string value.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

String QML Type

  • Import Statement: import QtQml 2.13

Detailed Description

The QML String object extends the JS String object with the arg() function.

See Also

Method Documentation

 

string arg(value)

Returns a copy of this string with the lowest numbered place marker replaced by value, i.e., %1, %2, ..., %99. The following example prints "There are 20 items":

 
Sélectionnez
var message = "There are %1 items"
var count = 20
console.log(message.arg(count))

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