QwtPlotAbstractCanvas(3) Qwt User's Guide QwtPlotAbstractCanvas(3)

QwtPlotAbstractCanvas - Base class for all type of plot canvases.

#include <qwt_plot_abstract_canvas.h>

Inherited by QwtPlotAbstractGLCanvas, and QwtPlotCanvas.


enum FocusIndicator { NoFocusIndicator, CanvasFocusIndicator, ItemFocusIndicator }
Focus indicator The default setting is NoFocusIndicator.


QwtPlotAbstractCanvas (QWidget *canvasWidget)
Constructor. virtual ~QwtPlotAbstractCanvas ()
Destructor. QwtPlot * plot ()
Return parent plot widget. const QwtPlot * plot () const
Return parent plot widget. void setFocusIndicator (FocusIndicator)
FocusIndicator focusIndicator () const
void setBorderRadius (double)
double borderRadius () const


QWidget * canvasWidget ()
const QWidget * canvasWidget () const
virtual void drawFocusIndicator (QPainter *)
virtual void drawBorder (QPainter *)
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.

Base class for all type of plot canvases.

Definition at line 21 of file qwt_plot_abstract_canvas.h.

Focus indicator The default setting is NoFocusIndicator.

See also

setFocusIndicator(), focusIndicator(), drawFocusIndicator()

Enumerator

Don't paint a focus indicator.
The focus is related to the complete canvas. Paint the focus indicator using drawFocusIndicator()
The focus is related to an item (curve, point, ...) on the canvas. It is up to the application to display a focus indication using f.e. highlighting.

Definition at line 30 of file qwt_plot_abstract_canvas.h.

Constructor.

Parameters

canvasWidget plot canvas widget

Definition at line 534 of file qwt_plot_abstract_canvas.cpp.

Returns

Radius for the corners of the border frame

See also

setBorderRadius()

Definition at line 613 of file qwt_plot_abstract_canvas.cpp.

Returns

Path for the canvas border

Definition at line 619 of file qwt_plot_abstract_canvas.cpp.

Returns

canvas widget

Definition at line 872 of file qwt_plot_abstract_canvas.cpp.

Returns

canvas widget

Definition at line 878 of file qwt_plot_abstract_canvas.cpp.

Draw the border of the canvas

Parameters

painter Painter

Reimplemented in QwtPlotCanvas.

Definition at line 628 of file qwt_plot_abstract_canvas.cpp.

Draw the focus indication

Parameters

painter Painter

Definition at line 587 of file qwt_plot_abstract_canvas.cpp.

QwtPlotAbstractCanvas::FocusIndicator QwtPlotAbstractCanvas::focusIndicator () const

Returns

Focus indicator

See also

FocusIndicator, setFocusIndicator()

Definition at line 578 of file qwt_plot_abstract_canvas.cpp.

Set the radius for the corners of the border frame

Parameters

radius Radius of a rounded corner

See also

borderRadius()

Definition at line 604 of file qwt_plot_abstract_canvas.cpp.

Set the focus indicator

See also

FocusIndicator, focusIndicator()

Definition at line 568 of file qwt_plot_abstract_canvas.cpp.

Generated automatically by Doxygen for Qwt User's Guide from the source code.

Sun Jul 18 2021 Version 6.2.0