title: Resizing qt widgets when their children are hidden
body: <p>How would I go about resizing the widget when the retry child is hidden so that it looks as in the first image? The main layout is a QVBoxLayout, the retry child is a widget with a QVBoxLayout as well.</p>
  
  <p>I've tried the following:</p>
  
  <ul>
  <li>update()</li>
  <li>updateGeometry()</li>
  <li>setGeometry(childrenRect())</li>
  <li>layout()->activate()</li>
  </ul>
  
  <p>on the main widget as soon as I've set the retry widget to hidden. Do I need to intercept some event to do this?</p>