添加QCustomPlot图表到 tabwidget 的tab页

    //初始化的时候、 添加QCustomPlot在tabwidget的标签当中。
    //1、新建QCustomPlot指针对象  继承当前的widget对象
    QCustomPlot *widget_qc = new QCustomPlot(this);
    //添加tab页面到  tabWidget当中、起名折线图
    ui->tabWidget->addTab(widget_qc,"折线图");
原文地址:https://www.cnblogs.com/yuanjia8888/p/14844193.html