下载资源后端资源详情
RealTimePlot.zip
资源类型:本地上传资源
大小:458.76KB
评分:
5.0
上传者:weixin_47488212
更新日期:2023-03-22

Qt、QCustomPlot、实时波形绘制、实时曲线绘制

资源文件列表(大概)

文件名
大小
RealTimePlot/
-
RealTimePlot/RealTimePlot.pro
1.19KB
RealTimePlot/RealTimePlot.pro.user
23.75KB
RealTimePlot/RealTimePlot.pro.user.392bdac.22
22.21KB
RealTimePlot/image/
-
RealTimePlot/image/pause.png
16.05KB
RealTimePlot/image/player.png
107.48KB
RealTimePlot/image.qrc
138B
RealTimePlot/main.cpp
183B
RealTimePlot/mainwindow.cpp
1.96KB
RealTimePlot/mainwindow.h
501B
RealTimePlot/mainwindow.ui
853B
RealTimePlot/qcustomplot.cpp
1.25MB
RealTimePlot/qcustomplot.h
301.72KB
RealTimePlot/widgetplot2d.cpp
20.44KB
RealTimePlot/widgetplot2d.h
1.29KB
RealTimePlot/widgetplot2d.ui
10.99KB

资源内容介绍

讲解见博客:https://blog.csdn.net/weixin_47488212/article/details/129299987 对于初学者而言,想要及时地做出一套上位机或实时波形显示界面,还是存在一定难度的,为了降低初学者的学习难度,亦方便其他研发人员的使用,笔者分享一套使用简单、功能强大的实时波形绘制控件,其基于Qt5与QCustomPlot实现。 在项目中必须包含QCustomPlot相关文件,笔者这里是直接包含qcustomplot.cpp、qcustomplot.h两个文件。另外在项目的.pro中,必须包含以下这句: QT += widgets printsupport 可以使用代码直接实例化WidgetPlot2D,或通过窗口提升,然后使用WidgetPlot2D绘制实时波形只需两步: ① 初始化波形名称:函数initGraphName(QStringList) ② 给对应的波形添加数据:函数addData(QString, double)

用户评论 (0)

发表评论

captcha