int to string conversion

Martin Piskernig martin.piskernig at stuwo.at
Sat Feb 12 10:32:01 GMT 2000


On Sat, 12 Feb 2000, you wrote:
> Hi,
> i was just wondering whether there is a function to convert integer
> values to strings in any of the libaries. I already tried itoa, Itoa and
> IntToStr. I also noticed there ist an Itoa function defined in the
> Integer.h header. But I don't really need an Integer class, just a
> little function to convert usual int variables into strings.

If you want to convert a number num (int, double...) to a QString do a:
QString tmp; 
tmp.setNum(num);
-- 
Martin Piskernig
<martin.piskernig at stuwo.at>    ICQ: 24015591
The KDevelop Team           www.kdevelop.org




More information about the KDevelop mailing list