[Qt-interest] QTextEdit howto append a integer ?

Oszkar Ambrus oszkar.ambrus at deri.org
Sun Feb 14 22:26:15 CET 2010


On 14/02/10 15:30, Aaron Lewis wrote:
> Hi , i'm new to QT. It's really not a good question.
> 
> i have something like this.
> 
> int i  = 5;
> ui->textedit->append(i);
> 
> There's no burden for method append with an integer.
> So i tried to use (char* )i  , QString(i) , both of them fails.
> Any solutions ?


Try QString::number(i)



-- 
Oszkár Ambrus

"Whoever believes in the Son [Jesus Christ] has eternal life"
(John 3:36)

Masters Student, Digital Enterprise Research Institute, NUIG
[http://www.deri.ie]




More information about the Qt-interest-old mailing list