QwtPlot 的画布
更多...
#include <qwt_plot_canvas.h>
|
| virtual void | paintEvent (QPaintEvent *) override |
| | Paint event handler
|
| |
| virtual void | resizeEvent (QResizeEvent *) override |
| | Resize event handler
|
| |
| virtual void | drawBorder (QPainter *) override |
| | Draw border
|
| |
| QWidget * | canvasWidget () |
| |
| const QWidget * | canvasWidget () const |
| |
| virtual void | drawFocusIndicator (QPainter *) |
| | Draw the focus indication
|
| |
|
virtual void | drawBackground (QPainter *) |
| | Helper function for the derived plot canvas
|
| |
|
void | fillBackground (QPainter *) |
| | Helper function for the derived plot canvas
|
| |
|
void | drawCanvas (QPainter *) |
| | Draw the plot to the canvas
|
| |
|
void | drawStyled (QPainter *, bool) |
| | Helper function for the derived plot canvas
|
| |
|
void | drawUnstyled (QPainter *) |
| | Helper function for the derived plot canvas
|
| |
| QPainterPath | canvasBorderPath (const QRect &rect) const |
| |
|
void | updateStyleSheetInfo () |
| | Update the cached information about the current style sheet
|
| |
◆ PaintAttribute
绘制属性
| 枚举值 |
|---|
| BackingStore | 后备存储
|
| Opaque | 不透明
|
| HackStyledBackground | 样式背景黑客
|
| ImmediatePaint | 立即绘制
|
◆ QwtPlotCanvas()
| QwtPlotCanvas::QwtPlotCanvas |
( |
QwtPlot * |
plot = nullptr | ) |
|
|
explicit |
◆ ~QwtPlotCanvas()
| QwtPlotCanvas::~QwtPlotCanvas |
( |
| ) |
|
|
virtual |
◆ backingStore()
| const QPixmap * QwtPlotCanvas::backingStore |
( |
| ) |
const |
◆ borderPath()
| QPainterPath QwtPlotCanvas::borderPath |
( |
const QRect & |
rect | ) |
const |
◆ drawBorder()
| void QwtPlotCanvas::drawBorder |
( |
QPainter * |
painter | ) |
|
|
overrideprotectedvirtual |
◆ event()
| bool QwtPlotCanvas::event |
( |
QEvent * |
event | ) |
|
|
overridevirtual |
Qt 事件处理器,处理 QEvent::PolishRequest 和 QEvent::StyleChange
◆ invalidateBackingStore()
| void QwtPlotCanvas::invalidateBackingStore |
( |
| ) |
|
◆ paintEvent()
| void QwtPlotCanvas::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotectedvirtual |
Paint event handler
Paint event
- 参数
-
◆ replot
| void QwtPlotCanvas::replot |
( |
| ) |
|
|
slot |
◆ resizeEvent()
| void QwtPlotCanvas::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
overrideprotectedvirtual |
Resize event handler
Resize event
- 参数
-
◆ setPaintAttribute()
| void QwtPlotCanvas::setPaintAttribute |
( |
PaintAttribute |
attribute, |
|
|
bool |
on = true |
|
) |
| |
◆ testPaintAttribute()
| bool QwtPlotCanvas::testPaintAttribute |
( |
PaintAttribute |
attribute | ) |
const |
该类的文档由以下文件生成:
- /home/runner/work/QWT/QWT/src/plot/qwt_plot_canvas.h
- /home/runner/work/QWT/QWT/src/plot/qwt_plot_canvas.cpp