Narek
Narek

Reputation: 39881

Resize QTextEdit in a QWidget while it is being resized the QWidget

How to make QTextEdit to be resized in a QWidget while the QWidget is being resized? Should I overload resizeEvent function for the QWidget?

Upvotes: 0

Views: 2264

Answers (2)

merula
merula

Reputation: 411

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.

Upvotes: 3

chalup
chalup

Reputation: 8516

No, you should set the sizePolicy property for your QTextEdit object.

Upvotes: 1

Related Questions