code: def mouseReleaseEvent(self, event):
          
          if event.button() == Qt.LeftButton:
              self._drag_origin = None
          widget = self.widget
          type(widget).mouseReleaseEvent(widget, event)
docs: Handle the mouse release event for the drag operation.