QCustomPlot绘图
来源:互联网 发布:淘宝装修的图片尺寸 编辑:程序博客网 时间:2024/05/16 08:27
1.创建Qt项目
2.Qt设计师添加Widget控件,并提升为QCustomPlot .
3.解决方案-右键属性-链接器-输入-Qt5printsupport.lib
4.在uicpp文件添加:
#include "QtGuiApplication1.h"
QtGuiApplication1::QtGuiApplication1(QWidget *parent)
: QMainWindow(parent)
{
ui.setupUi(this);
QVector<double> x(101), y(101);//分别存放x和y坐标的数据,101为数据长度
//添加数据,我们这里演示y=x^3,为了正负对称,我们x从-10到+10
for (int i = 0; i < 101; i++)
{
x[i] = i / 5 - 10;
y[i] = x[i] * x[i] * x[i];
}
ui.widget->addGraph();
ui.widget->graph()->setData(x,y);
}
0 0
- QCustomPlot绘图
- QT绘图工具QCustomPlot
- 关于QCustomPlot的绘图
- 关于Qt绘图控件qCustomPlot
- QCustomPlot绘图控件的使用
- Qt绘图控件QCustomPlot安装
- QCustomPlot之绘图的基础
- QCustomPlot绘图(一):使用入门
- QCustomPlot之绘图的基础
- 使用QCustomPlot绘图的基础
- Qt绘图插件QCustomPlot配置、使用
- QT绘图之第三方库QCUSTOMPLOT
- Qt + Qcustomplot绘图插件安装和配置
- QCustomPlot
- qt超强精美绘图控件 - QCustomPlot一览 及 安装使用教程
- qt超强精美绘图控件 - QCustomPlot一览 及 安装使用教程
- [转] QT超强精美绘图控件 - QCustomPlot一览 及 安装使用教程
- 【个人收藏】qt超强精美绘图控件 - QCustomPlot一览 及 安装使用教程
- JS基础(基本类型 )
- python基本命令的使用
- PAT 1121
- Base64编码与DES加密解密工具类
- ACM的分类训练题集
- QCustomPlot绘图
- 简介TCP/IP各层主要协议
- 详细介绍 Hibernate 泛型 DAO 及其使用方法
- [BZOJ2325][ZJOI2011][树链剖分][线段树]道馆之战
- HDU2067 小兔的棋盘
- int与Integer的区别
- 【OpenCV】访问图像中每个像素的值
- Leetcode 143. Reorder List(链表重新排序)
- dede二次开发--------常用标签总结1