Hi, if you want to deliver events I don't know since graphicsitems has no notify(). [dirty: you could inherit QObject in each item, then use notify] But if you only want to select the items why not just use setSelected:
Qt Code:
{ // test if right or left button is used for ( int i = 0; i < items(me->scenePos()).count(); i++ ){ items(me->scenePos()).at(i)->setSelected(true); //<-- } return false; } return true; }To copy to clipboard, switch view to plain text mode
And better cache items(me->scenePos()) instead of performing the "search" in each for-run.
Bookmarks