Autoscroll QScrollArea when its widget is resized
I have a QScrollArea that contains a widget that can be dynamically expanded down by adding new elements to its layout. I want to automatically scroll the QScrollArea to the bottom when a new element is added to layout.