【问题标题】:Qwt: curve with paddingQwt:带填充的曲线
【发布时间】:2014-11-11 07:35:54
【问题描述】:

我想用填充(圆角)绘制曲线。我搜索但没有找到。有这方面的资料吗?

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

感谢您的帮助。

【问题讨论】:

标签: qt qwt


【解决方案1】:

设置特殊属性:

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

未安装:

合身:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-28
    • 1970-01-01
    • 1970-01-01
    • 2017-11-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多