Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
GraphicsView, GraphicsItem Wheel Event..
-
I want to zoom in and zoom out the screen with the mouse wheel. And if the mouse hovers over a scrolling item, I want to move the item's scroll, not the View zoom. How do I do this?
-
You reimplement QGraphicsItem::wheelEvent on those items that should react to the mouse wheel. Set the event to "accepted" if you handled it.
Then you reimplement QWidget::wheelEvent on the QGraphicsView, and handle zooming. Look e.g. at the Elasic Nodes example for this.