The QScrollArea widget is entirely contained by its geometry (not the same thing as the geometry of the widget in the scroll area). What extra width or height are you trying to capture? Attach an annotated screen shot.