PDA

View Full Version : What's the best way to display the points' coordinate in a QwtPlot



accordionist
9th November 2010, 09:22
I'm new to Qwt, I'm drawing some lines in a QwtPlot, by saving the points' coordinate in two QVector vectX and vectY, and then invoke function->setData( vectX, vectY ), function is an instance of a QwtPlotCurve which has been attach to a QwtPlot.

My problem is: how to display the points' coordinates in the QwtPlot? and how to draw text in a QwtPlot giving the text's coordinate?

Uwe
10th November 2010, 06:32
Use QwtPlotMarkers or derive from QwtPlotCurve and reimplement one of the draw Methods.

Uwe