I have a custom QWidget which displays images. This widget is placed into a QScrollArea. When a new image is loaded, I would like for my main window to attempt to enlarge in hopes of not having scroll-bars. However, every way I attempt this, the size is just too small. Is there a correct way to do this?