箭头按钮
更多...
#include <qwt_arrow_button.h>
|
| 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
- 参数
-
| arrowType | Arrow type |
| boundingSize | Bounding 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
- 参数
-
| painter | Painter |
| r | Rectangle where to paint the arrow |
| arrowType | Arrow type |
◆ drawButtonLabel()
| void QwtArrowButton::drawButtonLabel |
( |
QPainter * |
painter | ) |
|
|
protectedvirtual |
Draw the button label
- 参数
-
- 参见
- 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 |
◆ sizeHint()
| QSize QwtArrowButton::sizeHint |
( |
| ) |
const |
|
overridevirtual |
该类的文档由以下文件生成:
- /home/runner/work/QWT/QWT/src/plot/qwt_arrow_button.h
- /home/runner/work/QWT/QWT/src/plot/qwt_arrow_button.cpp