QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
qwt_canvas_picker.h
1/******************************************************************************
2 * Qwt Widget Library
3 * Copyright (C) 2024 ChenZongYan <czy.t@163.com>
4 *****************************************************************************/
5#ifndef QWTCANVASPICKER_H
6#define QWTCANVASPICKER_H
7#include "qwt_picker.h"
8// qt
9class QWidget;
10// qwt
11class QwtPlot;
12
28class QWT_EXPORT QwtCanvasPicker : public QwtPicker
29{
30 Q_OBJECT
31public:
32 // Constructor with canvas widget
33 explicit QwtCanvasPicker(QWidget* canvas);
34 // Destructor
36
37 // Get the associated plot (non-const version)
38 QwtPlot* plot();
39 // Get the associated plot (const version)
40 const QwtPlot* plot() const;
41
42 // Get the canvas widget (non-const version)
43 QWidget* canvas();
44 // Get the canvas widget (const version)
45 const QWidget* canvas() const;
46};
47
48#endif // QWTCANVASPICKER_H
专门针对 canvas 的 picker 基类
Definition qwt_canvas_picker.h:29
QwtPicker 在一个部件上提供选择功能
Definition qwt_picker.h:157
二维绘图部件
Definition qwt_plot.h:138