Woops, remove the label-proxy, not the widget..
parent
263a5a8d07
commit
e33d6333ec
|
@ -600,5 +600,10 @@ class SelectRect(QtWidgets.QGraphicsRectItem):
|
|||
'''
|
||||
scen: QGraphicsScene = self.scene()
|
||||
scen.removeItem(self)
|
||||
if self._label:
|
||||
scen.removeItem(self._label)
|
||||
if (
|
||||
self._label
|
||||
and
|
||||
self._label_proxy
|
||||
|
||||
):
|
||||
scen.removeItem(self._label_proxy)
|
||||
|
|
Loading…
Reference in New Issue