PDA

View Full Version : How to convert an int or uint to QString. (qt4.1.1, SuSe 10, gcc 4.0.2)



freak
12th June 2006, 18:25
Hey guys,

How do you go about converting a uint or int to a QString?

Thanks in advanced.

Bojan
12th June 2006, 18:34
use one of setNum methods:

http://doc.trolltech.com/4.1/qstring.html#setNum

Bojan

wysota
12th June 2006, 18:47
Or use QString::number() static method.