def METHOD_NAME(self):
    """Update the item's bounding rect to match the viewport"""
    self._boundingRect = None  ## invalidate bounding rect, regenerate later if needed.
    self.prepareGeometryChange()