//初始化的时候、 添加QCustomPlot在tabwidget的标签当中。
//1、新建QCustomPlot指针对象 继承当前的widget对象
QCustomPlot *widget_qc = new QCustomPlot(this);
//添加tab页面到 tabWidget当中、起名折线图
ui->tabWidget->addTab(widget_qc,"折线图");
posted on 2021-06-03 10:35 袁佳佳 阅读(222) 评论(0) 编辑 收藏 举报