PDA

View Full Version : QPlainTextEdit is slow when implementing custom resize of parent window



acidr
17th July 2011, 13:26
Hi, all :)

I'm working on a Web Editor I'm building from scratch using a frameless-window so I have had to implement resizing myself.

The problem is that if I fill in as little as a 100 lines of html-code - with or without wordwraping - it gets realy slow to resize the parent window.
The QPlainTextEdit is placed in a layout with the Expanding policy.

The way I implemented the resize functionality is through a cornerWidget on the QPlainTextEdit itself, using mousePress-, mouseMove-, and mouseReleaseEvent's. This works fine when the QPlainTextEdit is empty.

Thanks for any pointers on how to proceed =D

high_flyer
18th July 2011, 15:24
You can start by posting the your resize code.