|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
表盘控件的指针 更多...
#include <qwt_dial_needle.h>
Public 类型 | |
| enum | Style { Arrow , Ray } |
| 指针样式 更多... | |
Public 成员函数 | |
| QwtDialSimpleNeedle (Style, bool hasKnob=true, const QColor &mid=Qt::gray, const QColor &base=Qt::darkGray) | |
| Constructor | |
| void | setWidth (double width) |
| Set the width of the needle | |
| double | width () const |
| Return the width of the needle | |
Public 成员函数 继承自 QwtDialNeedle | |
| QwtDialNeedle () | |
| Constructor | |
| virtual | ~QwtDialNeedle () |
| Destructor | |
| virtual void | setPalette (const QPalette &) |
| Set the palette for the needle | |
| const QPalette & | palette () const |
| Return the palette of the needle | |
| virtual void | draw (QPainter *, const QPointF ¢er, double length, double direction, QPalette::ColorGroup=QPalette::Active) const |
| Draw the needle | |
Protected 成员函数 | |
| virtual void | drawNeedle (QPainter *, double length, QPalette::ColorGroup) const override |
| Draw the needle | |
Protected 成员函数 继承自 QwtDialNeedle | |
| virtual void | drawKnob (QPainter *, double width, const QBrush &, bool sunken) const |
| Draw the knob | |
表盘控件的指针
| QwtDialSimpleNeedle::QwtDialSimpleNeedle | ( | Style | style, |
| bool | hasKnob = true, |
||
| const QColor & | mid = Qt::gray, |
||
| const QColor & | base = Qt::darkGray |
||
| ) |
Constructor
构造函数
|
overrideprotectedvirtual |
Draw the needle
| painter | Painter |
| length | Length of the needle |
| colorGroup | Color group, used for painting |
实现了 QwtDialNeedle.
| void QwtDialSimpleNeedle::setWidth | ( | double | width | ) |
Set the width of the needle
设置指针的宽度
| double QwtDialSimpleNeedle::width | ( | ) | const |
Return the width of the needle
返回指针的宽度