Set minimum size policy on form, maximum size policy on graphics

(or)

While adding the widgets to the QVBoxLayout set the stretch as form=1, frame=1, graphic=2