The scroll bar adapts to the size of the content widget (scrollAreaWidgetContents I assume) but that size is not changing here. Packing widget into its layout will, in general, not change the containers size. Try setting the vertical size policy of scrollAreaWidgetContents to Fixed so it is forced to match the aggregate of the contents vertical size hints.
Bookmarks