QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
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
13class QWT_EXPORT QwtPlotTransparentCanvas : public QFrame, public QwtPlotAbstractCanvas
14{
15 Q_OBJECT
16public:
20 explicit QwtPlotTransparentCanvas(QwtPlot* plot = nullptr);
25public Q_SLOTS:
29 virtual void replot();
30
31protected:
35 virtual void paintEvent(QPaintEvent* event) override;
39 virtual void drawBorder(QPainter* painter) override;
43 virtual QPainterPath borderPath(const QRect& rect) const;
44};
45
46#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:310
A transparent canvas for QwtPlot
Definition qwt_plot_transparent_canvas.h:14
A 2-D plotting widget
Definition qwt_plot.h:99