I have a QwtPlot that works with a QwtPlotPicker fine. I also implemented a QwtPlotZoomer that works fine. So when I left-click into the plot, both of them appear. What I really want is that the zoomer only appears when I synchronously press the Shift button on the keyboard, or the Ctrl key. I tried to catch this by implementing the keyPressEvent in the surrounding QMainWindow. But it turns out that the picker and the zoomer are not activated at all when the shift key is pressed. What is the hidden magic? I did not manage to make use of the KeyPatternCode.
Bookmarks