String QML Type
The String object represents a string value. More...
|Import Statement:||import QtQml 2.12|
- string arg(value)
The QML String object extends the JS String object with the arg() function.
See also ECMAScript Language Specification.
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"
var message = "There are %1 items" var count = 20 console.log(message.arg(count))
© 2018 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.