Qwt:带填充的曲线

时间:2014-11-11 07:35:55

标签: qt qwt

我想用填充绘制曲线(圆角)。我搜索但没有找到。有没有关于此的信息?

这是我在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);

感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

设置特殊属性:

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

不适合:

enter image description here

装配:

enter image description here

相关问题