I have mouse-wheel range zooming disabled, but I need the mouse wheel events to be passed through to the underlying scroll pane. Any way to do this without changing or overriding QCustomPlot code?
I have mouse-wheel range zooming disabled, but I need the mouse wheel events to be passed through to the underlying scroll pane. Any way to do this without changing or overriding QCustomPlot code?
You can use an event filter for this.
See
http://doc.qt.io/qt-4.8/qobject.html#installEventFilter
If it's a mouse wheel event, you keep and process it, any other events you can ignore and so have them given to the QCustomPlot (by returning QObject::eventFilter like in the example code in the link).