Manual resizing of QGraphicsItem using mouse
Unsolved
General and Desktop
-
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 doingsetAcceptHoverEvents(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
eventfilter
for doing such stuff?