I simply dragged the scroll area onto the main window anddragged my objects onto the scroll area in the Qt designer - no code.