Woops, remove the label-proxy, not the widget..

distribute_dis
Tyler Goodlet 2023-12-24 13:59:12 -05:00
parent 263a5a8d07
commit e33d6333ec
1 changed files with 7 additions and 2 deletions

View File

@ -600,5 +600,10 @@ class SelectRect(QtWidgets.QGraphicsRectItem):
''' '''
scen: QGraphicsScene = self.scene() scen: QGraphicsScene = self.scene()
scen.removeItem(self) scen.removeItem(self)
if self._label: if (
scen.removeItem(self._label) self._label
and
self._label_proxy
):
scen.removeItem(self._label_proxy)