Solved How to do the layout?
-
Original:
Want to layout as below, and the tab widget will resize automatically when its parent resizes:
Does
Qt Layout
can solve problem quickly?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 keyCtrl+G
to set the parent ofQTabwidget
to layout isQGridLayout
.That is all.
-
@joeQ It works, thanks.