|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
图例条目的属性 更多...
#include <qwt_legend_data.h>
Public 类型 | |
| enum | Mode { ReadOnly , Clickable , Checkable } |
| 定义图例条目如何交互的模式 更多... | |
| enum | Role { ModeRole , TitleRole , IconRole , UserRole = 32 } |
| 如何解释 QVariant 的标识符 更多... | |
Public 成员函数 | |
| QwtLegendData () | |
| 构造函数 | |
| ~QwtLegendData () | |
| 析构函数 | |
| void | setValues (const QMap< int, QVariant > &) |
| 设置图例属性 | |
| const QMap< int, QVariant > & | values () const |
| 返回图例属性 | |
| void | setValue (int role, const QVariant &) |
| 设置属性值 | |
| QVariant | value (int role) const |
| 返回特定角色的属性值 | |
| bool | hasRole (int role) const |
| 检查特定角色是否有值 | |
| bool | isValid () const |
| 检查图例数据是否有效 | |
| QwtGraphic | icon () const |
| 返回图标 | |
| QwtText | title () const |
| 返回标题 | |
| Mode | mode () const |
| 返回模式 | |
图例条目的属性
| enum QwtLegendData::Mode |
| enum QwtLegendData::Role |
| QwtLegendData::QwtLegendData | ( | ) |
构造函数
| QwtLegendData::~QwtLegendData | ( | ) |
析构函数
| bool QwtLegendData::hasRole | ( | int | role | ) | const |
检查特定角色是否有值
| QwtGraphic QwtLegendData::icon | ( | ) | const |
返回图标
| bool QwtLegendData::isValid | ( | ) | const |
检查图例数据是否有效
| QwtLegendData::Mode QwtLegendData::mode | ( | ) | const |
返回模式
| void QwtLegendData::setValue | ( | int | role, |
| const QVariant & | data | ||
| ) |
设置属性值
| void QwtLegendData::setValues | ( | const QMap< int, QVariant > & | map | ) |
设置图例属性
| QwtText QwtLegendData::title | ( | ) | const |
返回标题
| QVariant QwtLegendData::value | ( | int | role | ) | const |
返回特定角色的属性值
| const QMap< int, QVariant > & QwtLegendData::values | ( | ) | const |
返回图例属性