How to make QTextEdit to be resized in a QWidget while the QWidget is being resized? Should I overload resizeEvent functin for the QWidget?
+1
A:
No, you should set the sizePolicy property for your QTextEdit object.
chalup
2010-03-30 12:41:48
It is set "Expanding" and anyway, it doesn't work!
Narek
2010-03-30 13:02:06
In addition to this, you also need to have the text edit be inside a layout of the containing widget, all the way up to the main widget that is being resized.
Caleb Huitt - cjhuitt
2010-03-30 14:28:22
+3
A:
You should use layouts too achive this. There is an excellent tutorial by the trolls on how to do this: http://qt.nokia.com/doc/4.6/layout.html.
merula
2010-03-30 16:10:19