title: How to get current width of QWidget inside responsive QVBoxLayout?
body: <p>I'm currently trying to adapt a vertical scrollbar's step size to the height of the objects inside the scrollable and responsive QVBoxLayout. So that one scroll step exactly scrolls one widget down. All objects inside the QVBoxLayout do have the same geometry.</p>
  
  <p>Therefore I would need the current (live) height of one of the objects inside the QVBoxLayout. I have already tried the following methods:</p>
  
  <p>The object is initialized with a height of 300 (not fixed).
  The height is then adapted dynamically by resizing the window including the QVBoxLayout.</p>
  
  <pre><code>QWidget* pWidget = PointerToMyWidgetInsideQVBoxLayout;
  std::cout &lt;&lt; "height:" &lt;&lt; pWidget-&gt;height() &lt;&lt; std::endl; /// @todo PHIL: height gives only initial value, not current height
  std::cout &lt;&lt; "geometry-height:" &lt;&lt; pWidget-&gt;geometry().height() &lt;&lt; std::endl;
  std::cout &lt;&lt; "frameSize-height:" &lt;&lt; pWidget-&gt;frameSize().height() &lt;&lt; std::endl;
  std::cout &lt;&lt; "frameGeometry-height:" &lt;&lt; pWidget-&gt;frameGeometry().height() &lt;&lt; std::endl;
  std::cout &lt;&lt; "normalGeometryheight:" &lt;&lt; pWidget-&gt;normalGeometry().height() &lt;&lt; std::endl;
  std::cout &lt;&lt; "minimumHeight-height:" &lt;&lt; pWidget-&gt;minimumHeight() &lt;&lt; std::endl;
  std::cout &lt;&lt; "maximumHeight-height:" &lt;&lt; pWidget-&gt;maximumHeight() &lt;&lt; std::endl;
  std::cout &lt;&lt; "sizeHint-height:" &lt;&lt; pWidget-&gt;sizeHint().height() &lt;&lt; std::endl;
  </code></pre>
  
  <p>This results in the following output:</p>
  
  <pre><code>height:300
  geometry-height:300
  frameSize-height:300
  frameGeometry-height:300
  normalGeometryheight:300
  minimumHeight-height:0
  maximumHeight-height:16777215
  sizeHint-height:50
  </code></pre>
  
  <p>Many thanks in advance for your help!</p>