I haven't used scrollarea myself never, but according to Qt's manual I think you need to insert an empty widget in the scroll area and your other elements in the widget and then in MainWindow's constructor do this: Code: ui->yourScrollArea->setWidget(yourWidget);
ui->yourScrollArea->setWidget(yourWidget);