QWT 7.0.1
Loading...
Searching...
No Matches
qwt_plot_transparent_canvas.h
1#ifndef QWT_PLOT_TRANSPARENT_CANVAS_H
2#define QWT_PLOT_TRANSPARENT_CANVAS_H
3
4#include "qwt_global.h"
5#include "qwt_plot_abstract_canvas.h"
6#include <qframe.h>
7
8class QWT_EXPORT QwtPlotTransparentCanvas : public QFrame, public QwtPlotAbstractCanvas
9{
10 Q_OBJECT
11public:
12 explicit QwtPlotTransparentCanvas(QwtPlot* plot = nullptr);
14public Q_SLOTS:
15 virtual void replot();
16
17protected:
18 virtual void paintEvent(QPaintEvent* event) override;
19 virtual void drawBorder(QPainter* painter) override;
20 virtual QPainterPath borderPath(const QRect& rect) const;
21};
22
23#endif // QWT_PLOT_TRANSPARENT_CANVAS_H
Base class for all type of plot canvases.
Definition qwt_plot_abstract_canvas.h:39
virtual void drawBorder(QPainter *)
Draw the border of the canvas.
Definition qwt_plot_abstract_canvas.cpp:297
Definition qwt_plot_transparent_canvas.h:9
A 2-D plotting widget.
Definition qwt_plot.h:99