def __del__(self): QApplication.restoreOverrideCursor()
def cancel(self): self.hide() if QApplication.overrideCursor(): QApplication.restoreOverrideCursor() self.__pressedPos = None