title: QTabWidget how to hide pane only?
body: <p>I have added a <code>QToolButton</code> as corner widget in <code>QTabWidget</code> which is checkable. I want to hide all tabs (panes only) when the tool button is unchecked. I tried to connect button's signal <code>clicked(bool)</code> with all tab's <code>setVisible(bool)</code> slot not working but. I also connected tabwidget's <code>setvisible</code> to the signal but complete widget became invisible(it was a silly trial). Is there any way to make only pane invisible and tab bar will not disappear ? </p>
  
  <hr>
  
  <p>Edit: Code (ui have a tabwidget and two tabs namely tab and tab_2)</p>
  
  <pre><code>ui-&gt;setupUi(this);
  QToolButton * b = new QToolButton;
  b-&gt;setCheckable(true);
  b-&gt;setChecked(true);
  b-&gt;setAutoRaise(true);
  b-&gt;setText("Hide Tabs");
  ui-&gt;tabWidget-&gt;setCornerWidget(b);
  connect(b,SIGNAL(clicked()),ui-&gt;tab,SLOT(hide()));
  connect(b,SIGNAL(clicked()),ui-&gt;tab_2,SLOT(hide()));
  </code></pre>