I have several QGraphicsItem in the scene, spreading in different parts of the scene. The application has different modes in one of the modes, the user can scroll through the scene (palm drag mode). To achieve scrolling through the scene, I set dragMode from QGraphicsView to ScrollHandDrag .
But the problem is that the user is trying to scroll the scene by dragging ( MousePress and MouseMove ) onto any of the QGraphicsItem instead of scrolling the scene that he moves the QGraphicsItem .
How can I stop the QGraphicsItem movement and scroll the scene , but I still want to select QGraphicsItem s?
Any solution or any pointers will help.
NOTE. There are a very large number of QGraphicsItem and have a different type. Therefore, it is not possible to set an event filter on QGraphicsItem s.
source share