Lawand
18th February 2009, 20:07
When building and executing the following code:
#include <QString>
#include <iostream>
int main()
{
QString someString = QString("1%").arg("Hello World!");
std::cout << someString.toStdString();
return 0;
}
I get this output:
QString::arg: Argument missing: 1%, Hello World!
1%
which includes the error message "QString::arg: Argument missing", why am I getting this??
Thanks in advance.
#include <QString>
#include <iostream>
int main()
{
QString someString = QString("1%").arg("Hello World!");
std::cout << someString.toStdString();
return 0;
}
I get this output:
QString::arg: Argument missing: 1%, Hello World!
1%
which includes the error message "QString::arg: Argument missing", why am I getting this??
Thanks in advance.