PDA

View Full Version : Scrolling in QTextEdit Widget



ajb_advance
25th September 2007, 10:02
Hi,

I'm using a read-only QTextEdit widget (in Qt4.3.1) as a log window in my application and I can write log messages to it without any problems. As the window fills up a vertical scroll bar is created as expected, however I couldn't find a way to force the view to include the cursor position so you always see the latest messages printed. Can someone tell me how to move the scroll bars (viewport) to the cursor position?

Thanks

jpn
25th September 2007, 10:06
As far as I remember, QTextEdit::append() automatically scrolls down.

ajb_advance
25th September 2007, 11:34
Thanks for super fast reply jpn, that works great!