title: PyQT Qtabwidget hide and close certain tab
body: <p>Is it possible to hide and close a certain tab in Qtabwidget? I have 5 tabs, two of them are plots and generated while using my software. First I want to hide the two plots in the beginning and second I want to make them closable after there were generated. Is this possible? With <code>self.setTabsClosable(True)</code> all tabs will be closable.</p>
  
  <p>Thanks</p>
  
  <pre><code>import sys
  from PyQt4 import QtGui
  
  class QCustomTabWidget (QtGui.QTabWidget):
      def __init__ (self, parent = None):
          super(QCustomTabWidget, self).__init__(parent)
          self.setTabsClosable(True)
          self.tabCloseRequested.connect(self.closeTab)
          for i in range(1, 10):
              self.addTab(QtGui.QWidget(), 'Tab %d' % i)
  
      def closeTab (self, currentIndex):
          currentQWidget = self.widget(currentIndex)
          currentQWidget.deleteLater()
          self.removeTab(currentIndex)
  
  myQApplication = QtGui.QApplication([])
  myQCustomTabWidget = QCustomTabWidget()
  myQCustomTabWidget.show()
  sys.exit(myQApplication.exec_())
  </code></pre>