PDA

View Full Version : Detecting changes in the qwt plot axis



mrcolin
26th January 2009, 18:09
Hey everyone, Im currently writing an application for viewing EEG recordings but have hit a snag early on.

Im trying to call a function each time qwt plot has its axis's changed due to zooming or panning.

By using the "zoomed" signal from the QwtPlotZoomer I can partially achieve this. However, there appears to be no equivalent signal from QwtPlot or QwtPlotPanner which I can use to trigger this function after the plot as been "moved" along after panning.

Does anyone have any suggestions for a way I could take to get this working?... Perhaps detecting a mouse release event would be a route to take but it seems a little dirty if there is solution already present in the Qwt library.

Thanks for your time!

Uwe
27th January 2009, 06:56
connect(plot->axisWidget(...), SIGNAL(scaleDivChanged()), ... );

Uwe

mrcolin
27th January 2009, 13:53
Excellent!...

Thank you very much for your answer, its a perfect solution, cant believe i missed it!!! :eek: