QCustomPlot快速入门(一)
一、QCustomPlot 是什么?
- QCustomPlot是一种为绘图和数据可视化的一种QtC++控件,使用方便简洁。
- QCustomPlot用于在应用程序中显示实时数据以及生成高质量图表。
- QCustomPlot可以导出为各种格式,矢量化的PDF文件,栅格化的图像(比如PNG、JPG和BMP)。
二、QCustomPlot 能做什么?
1、数据实时显示
例子:QCustomPlot\examples\axis-tags,实时数据显示,标签动态显示
2、静态绘图样式
例子:QCustomPlot\examples\plots
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
setGeometry(400, 25