title: Scroll to the bottom when adding an element to a QScrollArea
body: <p>I have a QScrollArea and I would like when a I push my &quot;Add&quot; button that adds Widgets to the widgets contained in the QScrollArea for the scroll to scroll all the way to the bottom</p>
  <p>I made several attempts to Scroll to the bottomw ith code like</p>
  <pre><code>   scrollWidget.update()
     bar = scrollWidget.verticalScrollBar()
     bar.setValue(bar.maximum())
  </code></pre>
  <p>or even using <code>ensureWidgetVisible</code> But what appears to be happening is it scrolls to the bottom of the scroll &quot;Before&quot; the resize occurs, then it resizes so I am not quite at the bottom.</p>
  <p>I verfied this by writing code that checks the bar size, and the maximum bar size and the child count
  This shows there are new children but the bar size has not yet been updated.</p>
  <p>I then tried to give Qt time to &quot;recaluclate&quot; sizes first by calling:</p>
  <pre><code>   QApplication.processEvents()
     scrollWidget.update()
  </code></pre>
  <p>I do not want the scroll area to ALWAYS be on the bottom but only after pushing my button</p>