/* 绘图初始化设置 */ //绘制曲线初始化 customPlot = ui->widget; /***********************添加一条线并设置为蓝色****************************/ customPlot->addGraph(); customPlot->