QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
Public 槽 | Public 成员函数 | Protected 成员函数 | 所有成员列表
QwtPlotTransparentCanvas类 参考

A transparent canvas for QwtPlot 更多...

#include <qwt_plot_transparent_canvas.h>

类 QwtPlotTransparentCanvas 继承关系图:
QwtPlotAbstractCanvas

Public 槽

virtual void replot ()
 Replot the canvas
 

Public 成员函数

 QwtPlotTransparentCanvas (QwtPlot *plot=nullptr)
 Constructor
 
 ~QwtPlotTransparentCanvas () override
 Destructor
 
- Public 成员函数 继承自 QwtPlotAbstractCanvas
 QwtPlotAbstractCanvas (QWidget *canvasWidget)
 Constructor
 
QwtPlotplot ()
 Return parent plot widget
 
const QwtPlotplot () 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 成员函数

virtual void paintEvent (QPaintEvent *event) override
 Paint event handler
 
virtual void drawBorder (QPainter *painter) override
 Draw the border
 
virtual QPainterPath borderPath (const QRect &rect) const
 Get the border path
 
- Protected 成员函数 继承自 QwtPlotAbstractCanvas
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
 

额外继承的成员函数

- Public 类型 继承自 QwtPlotAbstractCanvas
enum  FocusIndicator { NoFocusIndicator , CanvasFocusIndicator , ItemFocusIndicator }
 Focus indicator 更多...
 

详细描述

A transparent canvas for QwtPlot

QwtPlotTransparentCanvas provides a transparent canvas for QwtPlot that allows the background to show through.

构造及析构函数说明

◆ QwtPlotTransparentCanvas()

QwtPlotTransparentCanvas::QwtPlotTransparentCanvas ( QwtPlot plot = nullptr)
explicit

Constructor

参数
[in]plotParent plot widget

成员函数说明

◆ drawBorder()

void QwtPlotTransparentCanvas::drawBorder ( QPainter *  painter)
overrideprotectedvirtual

Draw the border

重载 QwtPlotAbstractCanvas .


该类的文档由以下文件生成: