title: How to move a QVBoxLayout with QPushButtons 50px to the top?
body: <p>How can i move a QVBoxLayout with several QPushButtons 50px to the top?  </p>
  
  <p>This is my code. I tried this->adjustSize(), this->repaint(), but it doesn't move.</p>
  
  <pre><code>// get current geometry
  QRect geo = ui-&gt;VBoxLayout-&gt;geometry();
  
  // apply geometry, but substract 50px from y() to move it to the top
  ui-&gt;VBoxLayout-&gt;setGeometry(
      QRect(geo.x(), geo.y() - 50, geo.width(), geo.height())
  );
  </code></pre>