If you have no layout, then you need to resize manually.

If you have a layout, the widget needs to tell the layout that it can expand.
See the widget's sizePolicy property.

Cheers,
_