PDA

View Full Version : Problem with pick a QGraphicsItem



lni
13th December 2012, 14:03
Hi,

I have a QGraphicsItem (say child) that is a child of another QGraphicsItem (say parent). I need to move the child item around the viewing area by mouse click and move. However, when I move the child outside the parent's boundingRect and release it, I can no longer pick the child and move it.

I think the Qt implementation is first it determinea if the parent is under the mouse, if not, all its children will be ignored, even thought Qt allows to render child outside its parent's boundingRect.

Is there a flag I can set so child item can be picked in this case?

Thanks.

wysota
13th December 2012, 17:05
Please provide a minimal compilable example reproducing the problem.