其他分享
首页 > 其他分享> > Qt中qcustomplot绘制曲线

Qt中qcustomplot绘制曲线

作者:互联网

    /***********************添加一条线并设置为蓝色,线的区域用半透明蓝色填充****************************/
    customPlot->addGraph();
    customPlot->graph(0)->setPen(QPen(QColor(40, 110, 255)));
//    customPlot->graph(0)->setBrush(QBrush(QColor(0, 0, 255, 20)));//线下方区域用半透明蓝色填充

 

标签:QColor,Qt,customPlot,蓝色,graph,qcustomplot,绘制,半透明,255
来源: https://www.cnblogs.com/KaiW/p/15164959.html