QT QCustomPlot父级

时间:2018-01-19 16:45:10

标签: qt qcustomplot

我的ui中有一个QCustomPlot小部件,如下所示:

ui->plot_widget

我的cpp文件中还有另一个QCustomPlot对象,如下所示:

QCustomPlot *plot=new QCustomPlot();

我想将plot数据添加到ui->plot_widget数据中。 如果我使用ui->plot_widget=plotui->plot_widget的小部件父级将被销毁,而我的ui不会更新ui->plot_widget

如何将plot数据添加到ui->plot_widget数据中?

0 个答案:

没有答案