QT QCustomPlot parent

和自甴很熟 提交于 2019-12-11 16:47:54

问题


I have a QCustomPlot widget in my ui as follows:

ui->plot_widget

also I have another QCustomPlot object in my cpp file as follows:

QCustomPlot *plot=new QCustomPlot();

I want to add plot data into ui->plot_widget data. If I use ui->plot_widget=plot the widget parent of ui->plot_widget will be destroyed and my ui does not update ui->plot_widget.

How can I add plot data into ui->plot_widget data?

来源:https://stackoverflow.com/questions/48345789/qt-qcustomplot-parent

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!