Manpage logo

QwtPlotAbstractCanvas - Base class for all type of plot canvases.

NAME  SYNOPSIS  Public Types  Public Member Functions  Protected Member Functions  Detailed Description  Member Enumeration Documentation  enum QwtPlotAbstractCanvas::FocusIndicator  Constructor & Destructor Documentation  QwtPlotAbstractCanvas::QwtPlotAbstractCanvas (QWidget * canvasWidget)[explicit]  QwtPlotAbstractCanvas::˜QwtPlotAbstractCanvas () [virtual]  Member Function Documentation  double QwtPlotAbstractCanvas::borderRadius () const  QPainterPath QwtPlotAbstractCanvas::canvasBorderPath (const QRect & rect)const [protected]  QWidget * QwtPlotAbstractCanvas::canvasWidget () [protected]  const QWidget * QwtPlotAbstractCanvas::canvasWidget () const [protected]  void QwtPlotAbstractCanvas::drawBackground (QPainter * painter)[protected], [virtual]  void QwtPlotAbstractCanvas::drawBorder (QPainter * painter) [protected],[virtual]  void QwtPlotAbstractCanvas::drawCanvas (QPainter * painter) [protected]  void QwtPlotAbstractCanvas::drawFocusIndicator (QPainter * painter)[protected], [virtual]  void QwtPlotAbstractCanvas::drawStyled (QPainter * painter, boolhackStyledBackground) [protected]  void QwtPlotAbstractCanvas::drawUnstyled (QPainter * painter) [protected]  void QwtPlotAbstractCanvas::fillBackground (QPainter * painter) [protected]  QwtPlotAbstractCanvas::FocusIndicator QwtPlotAbstractCanvas::focusIndicator() const  QwtPlot * QwtPlotAbstractCanvas::plot ()  const QwtPlot * QwtPlotAbstractCanvas::plot () const  void QwtPlotAbstractCanvas::setBorderRadius (double radius)  void QwtPlotAbstractCanvas::setFocusIndicator (FocusIndicatorfocusIndicator)  void QwtPlotAbstractCanvas::updateStyleSheetInfo () [protected]  Author 

NAME

QwtPlotAbstractCanvas − Base class for all type of plot canvases.

SYNOPSIS

#include <qwt_plot_abstract_canvas.h>

Inherited by QwtPlotAbstractGLCanvas, and QwtPlotCanvas.

Public Types

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

Public Member Functions

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

Protected Member Functions

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.

Detailed Description

Base class for all type of plot canvases.

Definition at line 21 of file qwt_plot_abstract_canvas.h.

Member Enumeration Documentation

enum QwtPlotAbstractCanvas::FocusIndicator

Focus indicator The default setting is NoFocusIndicator.

See also

setFocusIndicator(), focusIndicator(), drawFocusIndicator()

Enumerator
NoFocusIndicator

Don’t paint a focus indicator.

CanvasFocusIndicator

The focus is related to the complete canvas. Paint the focus indicator using drawFocusIndicator()

ItemFocusIndicator

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 & Destructor Documentation

QwtPlotAbstractCanvas::QwtPlotAbstractCanvas (QWidget * canvasWidget)[explicit]

Constructor.

Parameters

canvasWidget plot canvas widget

Definition at line 534 of file qwt_plot_abstract_canvas.cpp.

QwtPlotAbstractCanvas::˜QwtPlotAbstractCanvas () [virtual]

Destructor.

Definition at line 546 of file qwt_plot_abstract_canvas.cpp.

Member Function Documentation

double QwtPlotAbstractCanvas::borderRadius () const

Returns

Radius for the corners of the border frame

See also

setBorderRadius()

Definition at line 613 of file qwt_plot_abstract_canvas.cpp.

QPainterPath QwtPlotAbstractCanvas::canvasBorderPath (const QRect & rect)const [protected]

Returns

Path for the canvas border

Definition at line 619 of file qwt_plot_abstract_canvas.cpp.

QWidget * QwtPlotAbstractCanvas::canvasWidget () [protected]

Returns

canvas widget

Definition at line 872 of file qwt_plot_abstract_canvas.cpp.

const QWidget * QwtPlotAbstractCanvas::canvasWidget () const [protected]

Returns

canvas widget

Definition at line 878 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::drawBackground (QPainter * painter)[protected], [virtual]

Helper function for the derived plot canvas.

Definition at line 690 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::drawBorder (QPainter * painter) [protected],[virtual]

Draw the border of the canvas

Parameters

painter Painter

Reimplemented in QwtPlotCanvas.

Definition at line 628 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::drawCanvas (QPainter * painter) [protected]

Draw the plot to the canvas.

Definition at line 803 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::drawFocusIndicator (QPainter * painter)[protected], [virtual]

Draw the focus indication

Parameters

painter Painter

Definition at line 587 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::drawStyled (QPainter * painter, boolhackStyledBackground) [protected]

Helper function for the derived plot canvas.

Definition at line 744 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::drawUnstyled (QPainter * painter) [protected]

Helper function for the derived plot canvas.

Definition at line 702 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::fillBackground (QPainter * painter) [protected]

Helper function for the derived plot canvas.

Definition at line 696 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.

QwtPlot * QwtPlotAbstractCanvas::plot ()

Return parent plot widget.

Definition at line 552 of file qwt_plot_abstract_canvas.cpp.

const QwtPlot * QwtPlotAbstractCanvas::plot () const

Return parent plot widget.

Definition at line 558 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::setBorderRadius (double radius)

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.

void QwtPlotAbstractCanvas::setFocusIndicator (FocusIndicatorfocusIndicator)

Set the focus indicator

See also

FocusIndicator, focusIndicator()

Definition at line 568 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::updateStyleSheetInfo () [protected]

Update the cached information about the current style sheet.

Definition at line 835 of file qwt_plot_abstract_canvas.cpp.

Author

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


Updated 2026-06-01 - jenkler.se | uex.se