code: def leaveEvent(self, event):
          
          if self.__cursor_changed:
              QApplication.restoreOverrideCursor()
              self.__cursor_changed = False
          self.QT_CLASS.leaveEvent(self, event)
docs: If cursor has not been restored yet, do it now