日志
-
2017-02-14 12:46
-
简介:QCustomplot 版本2.0,Qt5.5.1(不特定版本)。
阅读全文»分类:QCustomPlot学习demo|回复:0|浏览:1642
功能介绍:
1.根据自己的思路简单封装了一下时间轴。
2.鼠标移动显示当前时间点对应的股票点数值。
3.静态数据模拟显示折线。
敬请大家指点,有更好的意见与建议留言。
源码如下:
【1】pro文件,支持QCustomplot修改:
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
【2】股票窗口控件
1.头文件 stockwidget.h
#ifndef STOCKWIDGET_H
#define STOCKWIDGET_H
#include <QWidget>
#include <QTimer>
namespace Ui {
class StockWidget;
}
..