PDA

View Full Version : how to convert int to QString?



phillip_Qt
4th October 2007, 14:37
Hi EveryBody
can any one tell me how to convert int into Qstring?

I've a function int GetNo();
n my class name is let cls; n clsObj is object of this class.
so i need this function to change into QString;
clsObj.Getno();

Thanks.

marcel
4th October 2007, 14:41
See QString::number()

CopyrightPhilly
5th October 2007, 08:07
i was doing something like this just the other day,

the way i got it to work was


QString mystringint;
mystringint.setNum(100);

100 was is the int

cheers,
Philly