Hello,
I'm trying to modify default selection behaviour in qgraphicsscene. I'd like to have an event propagation: if a mouse clic occurs on the topmost item, it should be sent to every item under the topmost one.
I try different solutions but can't get it work. Here is my last try in a class derived from QGraphicsScene:
Qt Code:
{ me->setModifiers(Qt::ControlModifier); for ( int i = 0; i < items(me->scenePos()).count(); i++ ){ items(me->scenePos()).at(i)->setFocus(Qt::MouseFocusReason); mousePressEvent(me); } return false; } return true; }To copy to clipboard, switch view to plain text mode
Thanks for any help
Bookmarks