'If cursor has not been restored yet, do it now'

def leaveEvent(self, event):

    if self.__cursor_changed:
        QApplication.restoreOverrideCursor()
        self.__cursor_changed = False
    self.QT_CLASS.leaveEvent(self, event)
