Hey,
I have yet another question regarding QWT.
I added a QwtPlotPicker to my chart like this:
picker_->setStateMachine(new QwtPickerTrackerMachine());
picker_
->setRubberBandPen
(QColor(Qt
::green));
picker_
->setRubberBand
(QwtPicker::CrossRubberBand);
picker_
->setTrackerPen
(QColor(Qt
::black));
QwtPlotPicker picker_ = new QwtPlotPicker(this->canvas());
picker_->setAxis(QwtPlot::xBottom, QwtPlot::yRight);
picker_->setStateMachine(new QwtPickerTrackerMachine());
picker_->setTrackerMode(QwtPlotPicker::AlwaysOn);
picker_->setRubberBandPen(QColor(Qt::green));
picker_->setRubberBand(QwtPicker::CrossRubberBand);
picker_->setTrackerPen(QColor(Qt::black));
To copy to clipboard, switch view to plain text mode
Now the problem is that the values for the x-axis are shown as milliseconds from the epoch instead of dates. When I add a QwtPlotZoomer it displays values as dates just as I would expect it since my x-axis are dates (the curve is a QwtPlotTradingCurve).
Any ideas what I am doing wrong here?
Bookmarks