'Override Qt method'

def dropEvent(self, event):

    mimeData = event.mimeData()
    index_from = int(mimeData.data('source-index'))
    index_to = self.tabAt(event.pos())
    if (index_to == (-1)):
        index_to = self.count()
    if (int(mimeData.data('tabbar-id')) != id(self)):
        tabwidget_from = to_text_string(mimeData.data('tabwidget-id'))
        self.sig_move_tab[(str, int, int)].emit(tabwidget_from, index_from, index_to)
        event.acceptProposedAction()
    elif (index_from != index_to):
        self.sig_move_tab.emit(index_from, index_to)
        event.acceptProposedAction()
    QTabBar.dropEvent(self, event)
