PDA

View Full Version : grabMouse() on QGraphicsWidget()



wagmare
6th August 2009, 12:54
hi friends,

i came across a problem in setting grabMouse() on QGraphicsWidget itemWidget

itemWidget is having a proxywidget added to it as child .. now in scene i set itemWidget ->grabMouse() ..

after grabMouse() .. the entire mouseEvent shift to itemWidget .. keypressEvent return true ..

but the proxyWidget .. its child is not getting the mouseClick .. i set

proxyWidget->setFocusPolicy(Qt::ClickFocus);

but same thing is happening .. how to shift the whole focus to the child .. please help ...

wagmare
7th August 2009, 07:27
can any one please help me some information to change focus of mouse grab to its child of the item ..