self.connect(checkBox, QtCore.SIGNAL('stateChanged(int)'), lambda
    checkState: self.__emitStateChanged(checkBox, checkState))

def isChecked(self, index):
    return self.tabBar().tabButton(index, QtGui.QTabBar.LeftSide).checkState(
        ) != QtCore.Qt.Unchecked

def setCheckState(self, index, checkState):
    self.tabBar().tabButton(index, QtGui.QTabBar.LeftSide).setCheckState(
        checkState)

def __emitStateChanged(self, checkBox, checkState):
    index = self.checkBoxList.index(checkBox)
self.emit(QtCore.SIGNAL('stateChanged(int, int)'), index, checkState)
QTabWidget with CheckBox in title