I have an interface built with the designer in which I have a QLabel. This QLabel will resize with the interface and be used to display images that are sometimes larger than the actual QLabel, and thus I would like to fit it into a QScrollArea that will display scroll bars when necessary. Programmatically, I created the QScrollArea and tried adding it to the layout it was to be placed within, but could not manage to position nor size it without distorting the entire layout.

What I am wondering is, Is there any way that I could conveniently, or even automatically, have my QScrollArea adopt position, size, layout etc. of my QLabel, to make it contain, fit and size as intented?

Small and large version of my resizable interface to give you an idea of how it will position and resize, the selected widget is the QLabel: