title: QPushButton Geometry
body: <p>Inside a <code>QWidget</code> I put a <code>QHBoxLayoutwith,</code> two <code>QPushButton</code>s and a <code>QLabel</code>. I can change the geometry of the <code>QWidget</code> that works as container for the layout but can not change the size of the <code>QPushButton</code>: here my code</p>
  
  <pre><code>void
  QTitleBar::resizeEvent( QResizeEvent * event)
  {
   QSize size = event-&gt;size();
   int widgetHeight = size.rheight();
   int widgetWidth = size.rwidth();
  
   std::cout &lt;&lt; "resizeEvent h:" &lt;&lt;
    widgetHeight  
    &lt;&lt; " w: " &lt;&lt; widgetWidth &lt;&lt; std::endl;
  
   int layoutH = (int)((float)widgetHeight*(float)0.20);
  
  
   std::cout &lt;&lt; "resizeEvent h:" &lt;&lt;
    layoutH  
    &lt;&lt; " w: " &lt;&lt; widgetWidth &lt;&lt; std::endl;
  
   mapButton-&gt;setGeometry(0, 0, 120, layoutH);
   titleWidget-&gt;setGeometry(0, 0,  widgetWidth, layoutH);
  
  // title-&gt;setGeometry(130, 0, widgetWidth - (2*130), layoutH);
  // closeButton-&gt;setGeometry(widgetWidth - (2*130), 0,  130, layoutH);
  
   //closeButton-&gt;setGeometry(0, 0,  widgetWidth, layoutH);
  
  }
  </code></pre>
  
  <p>is there something wrong?</p>