📄 canvaspicker.h
字号:
#include <qobject.h>class QwtPlot;class CanvasPicker: public QObject{ Q_OBJECTpublic: CanvasPicker(QwtPlot *plot); virtual bool eventFilter(QObject *, QEvent *);private: void select(const QPoint &); void move(const QPoint &); void moveBy(int dx, int dy); void release(); void showCursor(bool enable); void shiftPointCursor(bool up); void shiftCurveCursor(bool up); QwtPlot *plot() { return (QwtPlot *)parent(); } const QwtPlot *plot() const { return (QwtPlot *)parent(); } int d_selectedCurve; int d_selectedPoint;};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -