📄 data_plot.h
字号:
#ifndef _DATA_PLOT_H#define _DATA_PLOT_H 1#include <qwt_plot.h>const int PLOT_SIZE = 201; // 0 to 200class DataPlot : public QwtPlot{ Q_OBJECTpublic: DataPlot(QWidget* = NULL);public slots: void setTimerInterval(double interval);protected: virtual void timerEvent(QTimerEvent *e);private: void alignScales(); double d_x[PLOT_SIZE]; double d_y[PLOT_SIZE]; double d_z[PLOT_SIZE]; int d_interval; // timer in ms int d_timerId;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -