When building and executing the following code:
Qt Code:
  1. #include <QString>
  2. #include <iostream>
  3.  
  4. int main()
  5. {
  6. QString someString = QString("1%").arg("Hello World!");
  7.  
  8. std::cout << someString.toStdString();
  9.  
  10. return 0;
  11. }
To copy to clipboard, switch view to plain text mode 
I get this output:
Qt Code:
  1. QString::arg: Argument missing: 1%, Hello World!
  2. 1%
To copy to clipboard, switch view to plain text mode 

which includes the error message "QString::arg: Argument missing", why am I getting this??

Thanks in advance.