qt-interest@trolltech.com
[Top] [All Lists]

Re: QTextEdit - add text via append() without implicit "newline char"

Subject: Re: QTextEdit - add text via append() without implicit "newline char"
From: Torsten Krah
Date: Thu, 17 Jul 2008 23:51:08 +0200
Am Donnerstag, 17. Juli 2008 schrieb Torsten Krah:
> Hi.
> I've got a tcp stream which i am analyzing (setting things like textcolor
> etc.) and appending text as needed.
> Works fine, but everytime i call "append" a newline gets "added" to the
> text. Is it possible to not add these ones, the screen output get
> interrupted through these newlines, i would really like to handle them
> myself. I can't call append only at "\n" because i change text attributes
> (color, underline & co) so i need to add the text immediately before these
> attributes are changed again.
>
> Any hints?
>
> Torsten

Nevermind, found the answer - i need to use insertPlainText instead of append, 
works fine.
Sorryfor the noise.

Torsten

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>