PDA

View Full Version : Qwt Zoom through PushButtons?



sonulohani
8th June 2012, 07:22
Sir, I have a problem. I have created an application that will zommIn or zoomOut when the pushbutton is clicked. There are two api's for zoomin and zoomout. One is QwtPlotZoomer and QwtPlotMagnifier. But i am confused about which to use? And also I want to get some idea on how to zoomin or zoomout through pushbuttons. I had gone through the examples but all the examples have zoomin or zoomout through mouse or either by key.

FelixB
8th June 2012, 08:19
this is the method you could use :

QwtPlotZoomer::zoom (const QRectF &)

sonulohani
8th June 2012, 10:56
Nope zoom is also also not working.

In this, you have to set each scale axis as per the signal that is generating through the push button.

Added after 53 minutes:

I've solved that, if anybody need help, then you're welcome to ask