View Full Version : QGraphicsItem::ItemPositionHasChanged called even when no position change

8th July 2013, 14:44

I am facing a very peculiar problem.
I have an custom graphics item in the shape of rectangle, whose QGraphicsItem::ItemPositionHasChanged event I catch and do some processing.
It works fine when the complete graphics item in inside the view, but if I position it such that it is half outside the view and half inside the view and then select the item, the QGraphicsItem::ItemPositionHasChanged event occurs (even when item position hasn't really changed as I have just selected the item and not moved it).
Please tell me what am I doing wrong ?