Doru
26th January 2011, 07:12
Hi,
I have a problem regarding QGraphicsPolygonItem(same for QGraphicsEllipseItem, QGraphicsPathItem):
the item is deselected on mousePress event and if I move it the item is selected again.
In case of QGraphicsRectItem it is not deselected on mousePress.
Does anybody know how to force not to deselect items on mousepress?
I use setSelected(true) in MousePress event but I get the same behavior.
I have a problem regarding QGraphicsPolygonItem(same for QGraphicsEllipseItem, QGraphicsPathItem):
the item is deselected on mousePress event and if I move it the item is selected again.
In case of QGraphicsRectItem it is not deselected on mousePress.
Does anybody know how to force not to deselect items on mousepress?
I use setSelected(true) in MousePress event but I get the same behavior.