format() function

Format a string using supplied arguments.

Syntax

format('string', arg, [arg...n])

Arguments

string - is string. String with Qt QString place holders. Use %1, %2, etc for placeholders. Placeholders can be repeated.
arg [arg...n] - any type. Any number of args.

Example

format('This %1 a %2','is', 'test') → This is a test