How to deal with “%1” in the argument of QString::arg()? August 2, 2023 by Tarik See the Qt docs about QString::arg(): QString str; str = "%1 %2"; str.arg("%1f", "Hello"); // returns "%1f Hello"