Hi,
I solved this problem by re-implementing QGraphicsItem::sceneEvent(QEvent *event). Now the mousepress/release events are occurring in the custom item.
Qt Code:
{ switch (event->type()) { mousePressEvent(static_cast<QGraphicsSceneMouseEvent *>(event)); break; mouseReleaseEvent(static_cast<QGraphicsSceneMouseEvent *>(event)); break; default: } return true; }To copy to clipboard, switch view to plain text mode
Bookmarks