QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
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
Base picker class specifically for canvas.
Definition qwt_canvas_picker.h:29
QwtPicker provides selections on a widget.
Definition qwt_picker.h:157
A 2-D plotting widget.
Definition qwt_plot.h:138