PDA

View Full Version : Simple question about QTextEdit



maverick_pol
6th March 2008, 17:48
Hi all,

I would like to ask about one thing concerning QTextEdit. When I add a lot of text to the text edit it automatically scrolls so the last line is visible. Howto set that the textEdit should ensure the first line visible?

Thanks,

Kacper

jpn
6th March 2008, 17:52
Yeah, QTextEdit::append() scrolls automatically. Use QTextEdit::insertHtml() or QTextEdit::insertPlainText() instead if you don't want automatic scrolling.