- 博客(3)
- 收藏
- 关注
原创 QT之QCustomPlot的使用(三)--往X轴添加字符串的静态曲线
m_pCustomPlot = new QCustomPlot(this);//初始化曲线图 m_pCustomPlot->setGeometry(1, 1, 400, 300);//初始化曲线图坐标 m_pCustomPlot->setLocale(QLocale(QLocale::Chinese, QLocale::China)); QVectordouble> tic
2018-01-23 10:52:46 2270
原创 QT之QCustomPlot的使用(二)--实时曲线
首先,我们先进行的是以时间为依据来进行动态展示,下面的代码是完整的可以进行使用; //动态显示的功能 for (int i = 0; i 10; i++) { num[i] = 0; } n = 0; QTimer *timer = new QTimer; timer->start(500); connect(tim
2018-01-23 10:46:32 3781
原创 QT之QCustomPlot的使用(一)--静态曲线
在此,我就不写QCustomPlot在哪下载什么的了。 QCustomPlot使用的不多,以我的了解,它所放置的数据都是double类型,还没有看到能有字符串类型的,如果有错误,请指出,谢谢了。QCustomPlot* pCustomPlot=new QCustomPlot(ui->widget);//QCustomPlot的初始化,ui->widget是QCustomplot所要承载的
2018-01-19 13:53:35 2384
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人