[Qt-interest] QTextEdit howto append a integer ?

David Boosalis david.boosalis at gmail.com
Sun Feb 14 22:39:59 CET 2010


ui->textedit->append(QString::number(i)

On Sun, Feb 14, 2010 at 5:30 AM, Aaron Lewis <aaron.lewis1989 at gmail.com>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 ?
>
> --
> Best Regards,
> Aaron Lewis
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100214/4fa6852a/attachment.html 


More information about the Qt-interest-old mailing list