how to show coordinate xy in plot window
Hi everybody, I saw the bode example and I liked of the zoom function. I have already implemented in my work.
When I press the mouse button I can see xy coordinates in the screen, I would like to aways see this coordinates, even I dont press the mouse, I would like the the xy coordinate be together with the mouse pointer when I pass throught the screen like zoom.
Someone knows how to do it?
thanks in advanced.
bye bye
Re: how to show coordinate xy in plot window
Define QwtPicker and have the QwtPlotPicker always on, this will result in the x and y data being shown for the location of the mouse.
pPicker = new plotPicker(QwtPlot::xBottom,QwtPlot::yLeft,QwtPick er::RectSelection | QwtPicker::ClickSelection, QwtPlotPicker::NoRubberBand, QwtPlotPicker::AlwaysOn,pCanvas);