I’m developing a C++ plugin for Qgis and I want to filter/override the mouse-wheel event.
I created a “maptool” to select a polygon feature on a vector layer, the feature has two attributes : an id & an integer H.
I want to override the mouse wheel event so that once I select a polygon, the wheel will allow me to change (increment/decrement) the value of attribute H and not zoom/unzoom the mapcanvas!
I created and “eventFilter” on my plugin’s base class which I install on the mapcanvas (QgsMapCanvas::installEventFilter()) once my maptool is activated, works fine to filter a key press for example but when it comes to the mouse-wheel it seems that it bypasses the eventFilter and does the usual zoom/unzoom action !!
Any ideas on how to solve this problem?
Thank you !
