QwtPlotMagnifier/QwtMagnifier's setZoomInKey and setZoomOutKey don't work.
Brought to you by:
rathmann
QwtPlotMagnifier *mag = new QwtPlotMagnifier( canvas );
mag->setZoomInKey(Qt::Key_A); //don't work
mag->setZoomOutKey(Qt::Key_B); //don't work
Thanks!
Anonymous
To make the keys working the canvas needs to have the focus. As the default focus policy of the canvas is Qt::NoFocus this should be the reason behind the problem.
QwtPicker auto-enables a focus policy, so I changed QwtMagnifier doing the same.
Fixed in all versions >= 6.2