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 ...
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 ...