How to do the layout?
Want to layout as below, and the tab widget will resize automatically when its parent resizes:
Qt Layoutcan solve problem quickly?
Dont use fixed size, u can check sizepolicy, expanding , Which will resize horizontally and vertically, as widget parent resizes.
if you want it in ui file. Just clicke your mouse in the
QTabWidgetparent. and then use hot key
Ctrl+Gto set the parent of
QTabwidgetto layout is
That is all.
@joeQ It works, thanks.