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

箭头按钮 更多...

#include <qwt_arrow_button.h>

类 QwtArrowButton 继承关系图:

class  PrivateData
 

Public 成员函数

 QwtArrowButton (int num, Qt::ArrowType, QWidget *parent=nullptr)
 构造函数
 
virtual ~QwtArrowButton ()
 析构函数
 
Qt::ArrowType arrowType () const
 获取箭头的方向
 
int num () const
 获取箭头的数量
 
virtual QSize sizeHint () const override
 获取按钮的大小提示
 
virtual QSize minimumSizeHint () const override
 获取按钮的最小大小提示
 

Protected 成员函数

virtual void paintEvent (QPaintEvent *) override
 Paint event handler
 
virtual void keyPressEvent (QKeyEvent *) override
 autoRepeat for the space keys
 
virtual void drawButtonLabel (QPainter *)
 Draw the button label
 
virtual void drawArrow (QPainter *, const QRect &, Qt::ArrowType) const
 Draw an arrow int a bounding rectangle
 
virtual QRect labelRect () const
 
virtual QSize arrowSize (Qt::ArrowType, const QSize &boundingSize) const
 Calculate the size for a arrow that fits into a rectangle of a given size
 

详细描述

箭头按钮

构造及析构函数说明

◆ QwtArrowButton()

QwtArrowButton::QwtArrowButton ( int  num,
Qt::ArrowType  arrowType,
QWidget *  parent = nullptr 
)
explicit

构造函数

◆ ~QwtArrowButton()

QwtArrowButton::~QwtArrowButton ( )
virtual

析构函数

成员函数说明

◆ arrowSize()

QSize QwtArrowButton::arrowSize ( Qt::ArrowType  arrowType,
const QSize &  boundingSize 
) const
protectedvirtual

Calculate the size for a arrow that fits into a rectangle of a given size

参数
arrowTypeArrow type
boundingSizeBounding size
返回
Size of the arrow

◆ arrowType()

Qt::ArrowType QwtArrowButton::arrowType ( ) const

获取箭头的方向

返回
箭头方向

◆ drawArrow()

void QwtArrowButton::drawArrow ( QPainter *  painter,
const QRect &  r,
Qt::ArrowType  arrowType 
) const
protectedvirtual

Draw an arrow int a bounding rectangle

参数
painterPainter
rRectangle where to paint the arrow
arrowTypeArrow type

◆ drawButtonLabel()

void QwtArrowButton::drawButtonLabel ( QPainter *  painter)
protectedvirtual

Draw the button label

参数
painterPainter
参见
The Qt Manual for QPushButton

◆ labelRect()

QRect QwtArrowButton::labelRect ( ) const
protectedvirtual
返回
the bounding rectangle for the label

◆ minimumSizeHint()

QSize QwtArrowButton::minimumSizeHint ( ) const
overridevirtual

获取按钮的最小大小提示

返回
最小大小提示

◆ num()

int QwtArrowButton::num ( ) const

获取箭头的数量

返回
箭头数量

◆ paintEvent()

void QwtArrowButton::paintEvent ( QPaintEvent *  event)
overrideprotectedvirtual

Paint event handler

参数
eventPaint event

◆ sizeHint()

QSize QwtArrowButton::sizeHint ( ) const
overridevirtual

获取按钮的大小提示

返回
大小提示

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