I want to draw an auxiliary line on the QwtPlot. The line should connect two points. I don't want use the QwtPlotCurve to achieve the goal. The class QwtPainter contains function drawLine, but I don't understand how to use this.

How to draw a line on the QwtPlot?