<p>I've a dialog which contains a Qt TabWidget with a number of tabs added. </p>

<p>I'd like to hide one of the tabs.  </p>

<pre><code>_mytab-&gt;hide() 
</code></pre>

<p>doesn't work.  I don't want to just delete the tab and all its widgets from the .ui file because other code relies on the widgets within the tab.  However, it would be fine to generate the tab code but somehow not ::insertTab in the generated uic_mydialog.cpp.  Setting the hidden property in the ui file does not work either.</p>

<p>I'm using Qt 3.3</p>

I would use QTabDialog::removePage(QWidget* pTabPage) which does not delete pTabPage, which is what you want.
```
```
_myTabDlg->removePage(_mytab);
```
```
I'm using it and it works fine !