Qt 使用QCustomPlot类 实现实时波形绘制

时间:2024-03-14 15:34:37

使用QCustomPlot类实现波形绘制 

1.首先需要将QCustomPlot类文件(.c/.h)文件添加到工程文件中 

   QCustomPlot 官方下载地址: 

    http://www.qcustomplot.com/index.php/download

    将下载的文件夹中的  .c/.h 文件添加到工程文件中    

2.然后配置工程文件,即在 .pro 文件中添加 :

     QT += widgets printsupport

3.工程源文件下载地址 :

   源代码

4.效果图:

    Qt 使用QCustomPlot类 实现实时波形绘制