Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Original:
Want to layout as below, and the tab widget will resize automatically when its parent resizes:
Does Qt Layout can solve problem quickly?
Qt Layout
Thanks.
Hi,
Dont use fixed size, u can check sizepolicy, expanding , Which will resize horizontally and vertically, as widget parent resizes.
Thanks,
@jronald Hi,friend.welcome.
if you want it in ui file. Just clicke your mouse in the QTabWidget parent. and then use hot key Ctrl+G to set the parent of QTabwidget to layout is QGridLayout.
QTabWidget
Ctrl+G
QTabwidget
QGridLayout
That is all.
@joeQ It works, thanks.