For QStrings there is a toInt( ) (or toDouble( ), etc) function that will convert the string to the appropriate number.
http://doc.trolltech.com/4.1/qstring.html#toInt
To convert a number into a string, there is a static function QString::number( int num, int base ) http://doc.trolltech.com/4.1/qstring.html#number that returns a QString.
Bookmarks