PDA

View Full Version : QTextEdit' height should adapt to the text size



Qiieha
28th October 2011, 09:31
Hi all!

I want to display a couple of QTextEdits in a a vertical layout. The lenght of the text is various and so the height of the QTextEdit should be various.
I changed lots of parameters(maximum size, minimum size, size policies), but I don't get the desired effect.

Can u give me a Hint??

thanks

mattc
29th October 2011, 09:34
If the text is read-only you can try a QLabel with word wrap = true