Hello,
I have a QGraphicsItem subbed class that draws a wire with QPainterPath between a list of vertices it has.
The vertices themselves are a bunch of QGraphicsItems.
The vertices are moveable to allow the wire to be edited.
I want to only show the vertices/render them if the wire itself is selected.
I added an itemChange using ItemSelectedChange and ItemSelectedHasChanged
to add vertices to the scene, and when deselected, to remove the vertices form the scene.
The problem is, when I go to move the vertex, the selection changes so the vertices that I am trying to move are destroyed.
Is there a good/better way to do this? IE a state that says self is selcted if any of the children are selected or something like that?
Bookmarks