Calling scrollArea->widgetResizable() is useless indeed, but calling scrollArea->setWidgetResizable(true) might be a good idea (call it just after you create the scroll area)

Also, you can play with QScrollArea::setSizePolicy() (inherited from QWidget)