|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
Base class for all type of plot canvases 更多...
#include <qwt_plot_abstract_canvas.h>
类 | |
| class | PrivateData |
Public 类型 | |
| enum | FocusIndicator { NoFocusIndicator , CanvasFocusIndicator , ItemFocusIndicator } |
| Focus indicator 更多... | |
Public 成员函数 | |
| QwtPlotAbstractCanvas (QWidget *canvasWidget) | |
| Constructor | |
| QwtPlot * | plot () |
| Return parent plot widget | |
| const QwtPlot * | plot () const |
| Return parent plot widget | |
| void | setFocusIndicator (FocusIndicator) |
| Set the focus indicator | |
| FocusIndicator | focusIndicator () const |
| Get the focus indicator | |
| void | setBorderRadius (double) |
| Set the radius for the corners of the border frame | |
| double | borderRadius () const |
| Get the radius for the corners of the border frame | |
Protected 成员函数 | |
| QWidget * | canvasWidget () |
| const QWidget * | canvasWidget () const |
| virtual void | drawFocusIndicator (QPainter *) |
| Draw the focus indication | |
| virtual void | drawBorder (QPainter *) |
| Draw the border of the canvas | |
| 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
Focus indicator
The default setting is NoFocusIndicator
| 枚举值 | |
|---|---|
| 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 e.g. highlighting. |
|
explicit |
Constructor
| [in] | canvasWidget | plot canvas widget |
Destructor
| double QwtPlotAbstractCanvas::borderRadius | ( | ) | const |
Get the radius for the corners of the border frame
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
Draw the focus indication
| painter | Painter |
| QwtPlotAbstractCanvas::FocusIndicator QwtPlotAbstractCanvas::focusIndicator | ( | ) | const |
| QwtPlot * QwtPlotAbstractCanvas::plot | ( | ) |
Return parent plot widget
| const QwtPlot * QwtPlotAbstractCanvas::plot | ( | ) | const |
Return parent plot widget
| void QwtPlotAbstractCanvas::setBorderRadius | ( | double | radius | ) |
Set the radius for the corners of the border frame
| [in] | radius | Radius of a rounded corner |
| void QwtPlotAbstractCanvas::setFocusIndicator | ( | FocusIndicator | focusIndicator | ) |
Set the focus indicator
| [in] | focusIndicator | Focus indicator type |