here is the situation: I have QGraphicsView, QGraphicsScene and QGraphicsItem. When I do not implement mouse events, I can drag items. But when I implement in the QGraphicsView
class MyView: public QGraphicsView {
...
protected:
void mouseMoveEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
void mousePressEvent(QMouseEvent *event);
...
}
I can't drag items anymore.
Should I implement somehow Mouse events for the QGraphicsItem and translate them from the QGraphicsView?
Currently, in QGraphicsItem I don't have these methods and use defaults. Thank you.