title: How can I resize a QTabWidget?
body: <p>My program performs a calculation and outputs a few schematics, drawn onto a label (using <code>QPixmap</code>). I show a label on every tab.</p>
  
  <p>When the next calculation is done and the drawings are smaller, I want the size of the tabs to decrease as well. But that does not happen. The tab size stay the same.</p>
  
  <p>I first remove all previous tabs with <code>removeTab(</code>) and then create the new tabs. The only thing that is not removed is the <code>QTabWidget</code> itself of course.</p>
  
  <p>When starting with small drawings, the tab size increases with larger drawings. But it doesn't work the other way round.</p>
  
  <p>How can I fix this? The following code does not work:</p>
  
  <pre><code>layout_tabs = new QTabWidget;
  layout_tabs-&gt;setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
  </code></pre>
  
  <p>I am using QT-4.8.4.</p>