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

风向指示器 更多...

#include <qwt_dial_needle.h>

类 QwtCompassWindArrow 继承关系图:
QwtDialNeedle

Public 类型

enum  Style { Style1 , Style2 }
 箭头样式 更多...
 

Public 成员函数

 QwtCompassWindArrow (Style, const QColor &light=Qt::white, const QColor &dark=Qt::gray)
 Constructor
 
- 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 &center, 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
 

详细描述

风向指示器

成员枚举类型说明

◆ Style

箭头样式

枚举值
Style1 

指向中心的指针

Style2 

指向中心的指针

构造及析构函数说明

◆ QwtCompassWindArrow()

QwtCompassWindArrow::QwtCompassWindArrow ( Style  style,
const QColor &  light = Qt::white,
const QColor &  dark = Qt::gray 
)

Constructor

构造函数

成员函数说明

◆ drawNeedle()

void QwtCompassWindArrow::drawNeedle ( QPainter *  painter,
double  length,
QPalette::ColorGroup  colorGroup 
) const
overrideprotectedvirtual

Draw the needle

参数
painterPainter
lengthLength of the needle
colorGroupColor group, used for painting

实现了 QwtDialNeedle.


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