QWT API (中文) 7.3.0
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
19class QWT_EXPORT QwtCanvasPicker : public QwtPicker
20{
21 Q_OBJECT
22public:
23 // Constructor with canvas widget
24 explicit QwtCanvasPicker(QWidget* canvas);
25 // Destructor
26 ~QwtCanvasPicker() override;
27
28 // Get the associated plot (non-const version)
29 QwtPlot* plot();
30 // Get the associated plot (const version)
31 const QwtPlot* plot() const;
32
33 // Get the canvas widget (non-const version)
34 QWidget* canvas();
35 // Get the canvas widget (const version)
36 const QWidget* canvas() const;
37};
38
39#endif // QWTCANVASPICKER_H
Base picker class specifically for canvas
Definition qwt_canvas_picker.h:20
QwtPicker provides selections on a widget
Definition qwt_picker.h:108
A 2-D plotting widget
Definition qwt_plot.h:99