Qwt: curve with padding

409 views Asked by At

I want to draw curves with padding(Rounding the 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);

Thanks for help.

1

There are 1 answers

0
Jablonski On BEST ANSWER

Set special attribute:

QwtPlotCurve *curve = new QwtPlotCurve;
curve->setCurveAttribute(QwtPlotCurve::Fitted, true);

Not fitted:

enter image description here

Fitted:

enter image description here