How to resize QTextEdit when append long text?
General and Desktop
2
Posts
2
Posters
1.4k
Views
1
Watching
-
Below the QTextEdit place a vertical spacer. Place both in a horizontal layout. This will make the QTextEdit increase/decrease with added/removed text and makes the size of the QTextEdit dependant of the substance. Also when MainWindow resizes, it will follow. Don't forget to set a minimumsize hint for the QTextEdit to indicate a minium size to shrink to.