加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
qplot.h 810 Bytes
一键复制 编辑 原始数据 按行查看 历史
unknown 提交于 2022-08-04 19:07 . tijao
#include "qcustomplot.h"
#include <QObject>
#include <QList>
class qplot:public QCustomPlot
{
Q_OBJECT
public:
qplot(QWidget *parent = nullptr);
QPen pen;
QColor color ;
protected:
void leaveEvent(QEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void wheelEvent(QWheelEvent *event);
private:
QCPItemTracer *tracer= nullptr;
QCPItemTracer *tracer_1= nullptr;
QCPItemTracer *tracer_2= nullptr;
QCPItemTracer *tracer_3= nullptr;
QCPItemTracer *tracer_4= nullptr;
QVector<QCPItemTracer> tracers;
QCPItemStraightLine *arrowH = nullptr;
QCPItemStraightLine *arrowV = nullptr;
QPoint m_lastPoint;
bool m_isPress = false;
bool m_ctrlPress;
bool m_alreadySaveRange;
double m_xMin, m_xMax, m_yMin, m_yMax;
private slots:
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化