Manual resizing of QGraphicsItem using mouse
I have extended both QGraphicsScene and QGraphicsView, and at the same time overwritten the QGraphicsScene mousePress, mouseMove and mouseRelease events.
Now this events are handled by my transform tool class which is also responsible for drawing a bounding rectangle. Doing manual resizing seems like a trivial task, but I am unable to override the hover events of the bounding rectangle class even after doing
setAcceptHoverEvents(true);inside the derived QGraphicsRectItem.
Is my approach a correct one? If yes where am I most probably going wrong, if not what should be a better approach? Another thing which came to my mind is should install an
eventfilterfor doing such stuff?