What to add to sje397's answer:
When internationalizing your application, you can have this line:
QString formatInAnOtherLanguage("%3 %1 %2");
Therefore, when calling
formatInAnOtherLanguage.arg("something");
formatInAnOtherLanguage will be
"%3 something %2"
What is the main advantage of the arg function over the sprintf function
source
share