PDA

View Full Version : Qwt: curve with padding



alperyazir
11th November 2014, 07:39
I want to draw curves with padding(rounding corners). I searched but nothing found. Is there any information about this?

This is how to i draw curves in qwt:



QwtPlotCurve *curve = new QwtPlotCurve;
curve->setPen(QColor(color),width);
QPolygonF p;
p<<QPointF(x1,x2)<<QPointF(x1,x2);

curve->setSamples(p);
curve->attach(this);

Uwe
11th November 2014, 10:19
See QPen::setJoinStyle. If your question is about spline interpolation ( QwtSplineCurveFitter ) I would recommend to check the code from SVN trunk.

Uwe