Menu

#267 QwtPlotMagnifier/QwtMagnifier's setZoomInKey and setZoomOutKey don't work.

None
closed
nobody
None
5
2017-02-18
2016-07-14
Anonymous
No

QwtPlotMagnifier *mag = new QwtPlotMagnifier( canvas );
mag->setZoomInKey(Qt::Key_A); //don't work
mag->setZoomOutKey(Qt::Key_B); //don't work

Thanks!

Discussion

  • Uwe Rathmann

    Uwe Rathmann - 2017-02-18

    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.

     
  • Uwe Rathmann

    Uwe Rathmann - 2017-02-18
    • status: open --> closed
    • Group: -->
     
  • Uwe Rathmann

    Uwe Rathmann - 2017-02-18

    Fixed in all versions >= 6.2

     

Anonymous
Anonymous

Add attachments
Cancel