title: QWidget sizeHint()
body: <p>i have reimplemented(overloaded) a <code>sizeHint()</code> function in a customized <code>QPushButton</code> class like this:</p>
  
  <pre><code>QSize CustQPushButton::sizeHint()const         
  {
     QWidget *parentWindow=this-&gt;parentWidget(); //a pointer to the parent window   
    return QSize(parentWindow-&gt;width()/10,60);
  }
  </code></pre>
  
  <p>the problem is :</p>
  
  <p>When the window is initially displayed the width of my buttons are as expected(1/10 the window), but when the window is resized the 
  buttons are not resized proportionally to the window(the parent). The <code>CustQPushButton</code> Size Policy is set to <code>Fixed/Fixed</code> and my instantiated buttons are inside a QGridLayout.</p>
  
  <p>Can someone please help me?</p>