Check out the documentation
Quote:
QString provides many functions for
converting numbers into strings and
strings into numbers. See the arg()
functions, the setNum() functions, the
number() static functions, and the
toInt(), toDouble(), and similar
functions.