Canvas of a QwtPlot.
More...
#include <qwt_plot_canvas.h>
|
| void | replot () |
| | Invalidate the paint cache and repaint the canvas.
|
| |
|
| 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
Paint attributes.
| Enumerator |
|---|
| BackingStore | BackingStore.
|
| Opaque | Opaque.
|
| HackStyledBackground | HackStyledBackground.
|
| ImmediatePaint | 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 |
Calculate the painter path for a styled or rounded border.
◆ drawBorder()
| void QwtPlotCanvas::drawBorder |
( |
QPainter * |
painter | ) |
|
|
overrideprotectedvirtual |
◆ event()
| bool QwtPlotCanvas::event |
( |
QEvent * |
event | ) |
|
|
overridevirtual |
Qt event handler for QEvent::PolishRequest and QEvent::StyleChange.
◆ invalidateBackingStore()
| void QwtPlotCanvas::invalidateBackingStore |
( |
| ) |
|
Invalidate the internal backing store .
◆ paintEvent()
| void QwtPlotCanvas::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotectedvirtual |
Paint event handler.
Paint event.
- Parameters
-
◆ replot
| void QwtPlotCanvas::replot |
( |
| ) |
|
|
slot |
Invalidate the paint cache and repaint the canvas.
◆ resizeEvent()
| void QwtPlotCanvas::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
overrideprotectedvirtual |
Resize event handler.
Resize event.
- Parameters
-
◆ setPaintAttribute()
| void QwtPlotCanvas::setPaintAttribute |
( |
PaintAttribute |
attribute, |
|
|
bool |
on = true |
|
) |
| |
Change the paint attributes.
◆ testPaintAttribute()
| bool QwtPlotCanvas::testPaintAttribute |
( |
PaintAttribute |
attribute | ) |
const |
Test whether a paint attribute is enabled.
The documentation for this class was generated from the following files:
- /home/runner/work/QWT/QWT/src/plot/qwt_plot_canvas.h
- /home/runner/work/QWT/QWT/src/plot/qwt_plot_canvas.cpp