Hi!

I made MyTextEdit derived from QPlainTextEdit with added line numbers widget. I also changed style by setting:
Qt Code:
  1. setStyle(new QCleanlooksStyle);
To copy to clipboard, switch view to plain text mode 
I also have a word wrapping on. Now, when Im typing some text on the last line of the document (the last on the bottom) and I reach the end of line, text is wrapped but text edit doesn't want to scroll. Whats more it even doesn't want to extend vertical scrollbar. You cannont scroll with scrollbar or mouse wheel unless you resize the window or type enter to make a new line, because making new lines is scrolling the text edit. It's quite annoying as I'm writing LaTeX document so dont need to make new lines, cause I have pdflatex for that job and line wrapping is all I need.

Any suggestions?
(I'm using Qt 4.4.3 on Vista with msvc2005)

Thanks in advance.