title: QSizePolicy true meaning, documentation and thoughts
body: <p>I have been now two years working deeply with Qt layout system. After this time i encountered thosand of problems with SizePolicies and Layouts. I normally found out solutions, but never really understood what i was doing.</p>
  
  <p>Now i was taking some time to try to understand correctly and build a 101 GUIDE for them and never fail. I found out this piece of information in the documentation about QSizePolicy of a QWidget:</p>
  
  <blockquote>
    <p>This property holds the default layout behavior of the widget</p>
    
    <p>If there is a QLayout that manages this widget's children, the size
    policy specified by that layout is used. If there is no such QLayout,
    the result of this function is used.</p>
  </blockquote>
  
  <p>I thought that if you had a QLabel, for example, and you set the policies to Horizontal Expanding, Vertical Fixed, THE LABEL itself changed that way.
  But it doesn't, at all.</p>
  
  <p>When reading that i see that it talks about ITS CHILDREN inside the LAYOUT. So what does it mean, then?. Nothing is inside the label, is that why it does not work?.</p>
  
  <p>WHat about inserting a label inside a QFrame, and telling the frame to be Expanding... Will the QFrame expand or stretch (depending on the rest of brother widgets in the same Layout) or will the label expand or stretch, not the QFrame?</p>
  
  <p>What a mess...</p>
  
  <p>What about Stretching?. If you set stretching 10 when you add the widget:</p>
  
  <pre><code>layout-&gt;addwidget(label, 10, Qt::AlignHCenter);
  </code></pre>
  
  <p>It doesn't work either.</p>
  
  <p>Stretch 0 when you add the widget means : Take the policies i told you. Default, depends on the type of widget. Button-like widgets have expanding-fixed. Box-like Expanding-Expanding... </p>
  
  <p>Stretch 10 means: grow maximum.</p>
  
  <p>Am i right? Well. When having a QFrame and a QLabel inside, setting Expanding, and 10 to strech to the label DOES NOT WORK.</p>