Hello, I want to display the pos(x,y) of the Axis draw by the class QwtPlot when my mouse drags, which works only when the mouse is in the axis area . My code is as follow:
QwtPlotCanvas *canva = new QwtPlotCanvas(this);
picker = new QwtPlotPicker(QwtPlot::xBottom,QwtPlot::yLeft,canv a);
picker->setStateMachine(new QwtPickerTrackerMachine);
picker->setTrackerMode(QwtPicker::AlwaysOn);
But in fact, only a small area on the top left corner can display the pos(x,y) of the window instead of the axis which is really I want. Who can tell me what is wrong with my code? Thank you ï¼
Bookmarks