def METHOD_NAME(self, obj, event):
    status = self._connected
    if event.type() == QEvent.Leave:
        QApplication.setOverrideCursor(QCursor(Qt.ArrowCursor))
    elif event.type() == QEvent.Enter and not status:
        QApplication.setOverrideCursor(QCursor(Qt.ForbiddenCursor))
    return False