QwtPlotCanvas(3) | Qwt User's Guide | QwtPlotCanvas(3) |
QwtPlotCanvas - Canvas of a QwtPlot.
#include <qwt_plot_canvas.h>
Inherits QFrame.
enum PaintAttribute { BackingStore = 1,
Opaque = 2, HackStyledBackground = 4, ImmediatePaint =
8 }
Paint attributes. enum FocusIndicator { NoFocusIndicator,
CanvasFocusIndicator, ItemFocusIndicator }
Focus indicator The default setting is NoFocusIndicator. typedef QFlags<
PaintAttribute > PaintAttributes
Paint attributes.
void replot ()
QwtPlotCanvas (QwtPlot *=NULL)
Constructor. virtual ~QwtPlotCanvas ()
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
void setPaintAttribute (PaintAttribute, bool on=true)
Changing the paint attributes. bool testPaintAttribute
(PaintAttribute) const
const QPixmap * backingStore () const
void invalidateBackingStore ()
Invalidate the internal backing store. virtual bool event (QEvent *)
Q_INVOKABLE QPainterPath borderPath (const QRect &) const
virtual void paintEvent (QPaintEvent *)
virtual void resizeEvent (QResizeEvent *)
virtual void drawFocusIndicator (QPainter *)
virtual void drawBorder (QPainter *)
void updateStyleSheetInfo ()
Update the cached information about the current style sheet.
Canvas of a QwtPlot.
Canvas is the widget where all plot items are displayed
See also:
Focus indicator The default setting is NoFocusIndicator.
See also:
Enumerator
Paint attributes. The default setting enables BackingStore and Opaque.
See also:
Enumerator
See also:
When the Opaque attribute is enabled the canvas tries to identify the gaps with some heuristics and to fill those only.
Warning:
When HackStyledBackground is enabled the plot canvas tries to separate the background from the background border by reverse engineering to paint the background before and the border after the plot items. In this order the border gets perfectly antialiased and you can avoid some pixel artifacts in the corners.
See also:
Constructor.
Parameters:
See also:
Returns:
Calculate the painter path for a styled or rounded border
When the canvas has no styled background or rounded borders the painter path is empty.
Parameters:
Returns:
Returns:
See also:
Draw the border of the plot canvas
Parameters:
See also:
Draw the focus indication
Parameters:
Qt event handler for QEvent::PolishRequest and QEvent::StyleChange
Parameters:
Returns:
Returns:
See also:
Paint event
Parameters:
Invalidate the paint cache and repaint the canvas
See also:
Resize event
Parameters:
Set the radius for the corners of the border frame
Parameters:
See also:
Set the focus indicator
See also:
Changing the paint attributes.
Parameters:
See also:
Test whether a paint attribute is enabled
Parameters:
Returns:
See also:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |