PDA

View Full Version : Converting number to string.



safknw
16th September 2006, 10:27
How I can convert number to string.

munna
16th September 2006, 11:58
QString::number()

hayati
18th September 2006, 12:12
also there is more general support for all types.
it is

QString::arg()
function.
Example usage:


QString("%1 plus %2 equals %3").arg(3).arg(5).arg("eight");

this QString contains:

"3 plus 5 equals eight"