首先放着连接,之后逐步补充 https://blog.csdn.net/qq_31073871/article/details/82987524 在ui界面中拖入一个graphicsView控件ui->graphicsView->setChart(chart);