DAWorkbench 0.0.1
DAWorkbench API
载入中...
搜索中...
未找到
DA::DAChartPlotItemSettingWidget类 参考

QwtPlotItem的设置窗口 更多...

#include <DAChartPlotItemSettingWidget.h>

类 DA::DAChartPlotItemSettingWidget 继承关系图:
DA::DAAbstractChartItemSettingWidget

Public 成员函数

 DAChartPlotItemSettingWidget (QWidget *parent=nullptr)
 
void clear ()
 清除所有信息和内容
 
virtual void updateUI (QwtPlotItem *item) override
 刷新ui 此函数不会触发信号
 
void applySetting (QwtPlotItem *item)
 
void updateAxis (const QwtPlotItem *item)
 更新坐标轴的设置
 
void setItemTitle (const QString &t)
 设置标题
 
QString getItemTitle () const
 标题
 
QPair< int, int > getAxisIDs () const
 获取axis信息
 
- Public 成员函数 继承自 DA::DAAbstractChartItemSettingWidget
 DAAbstractChartItemSettingWidget (QWidget *parent=nullptr)
 
void setPlotItem (QwtPlotItem *item)
 设置plotitem
 
QwtPlotItem * getPlotItem () const
 setPlotItem之后调用的虚函数
 
bool isHaveItem () const
 判断是否有item
 
bool checkItemRTTI (QwtPlotItem::RttiValues rtti) const
 判断当前item是否是对应的rtti,如果没有item也返回false
 
QwtPlot * getPlot () const
 获取绘图
 
template<typename T >
d_cast ()
 快捷转换为别的item
 
template<typename T >
s_cast ()
 快捷转换为别的item
 
void replot ()
 

额外继承的成员函数

- Public 槽 继承自 DA::DAAbstractChartItemSettingWidget
virtual void plotItemAttached (QwtPlotItem *plotItem, bool on)
 
- Protected 成员函数 继承自 DA::DAAbstractChartItemSettingWidget
void setPlot (QwtPlot *plot)
 设置plot是为了能感知item是否消除
 
- Protected 属性 继承自 DA::DAAbstractChartItemSettingWidget
QwtPlotItem * mPlotItem { nullptr }
 
QPointer< QwtPlot > mPlot { nullptr }
 

详细描述

QwtPlotItem的设置窗口

成员函数说明

◆ getAxisIDs()

QPair< int, int > DA::DAChartPlotItemSettingWidget::getAxisIDs ( ) const

获取axis信息

返回

◆ getItemTitle()

QString DA::DAChartPlotItemSettingWidget::getItemTitle ( ) const

标题

返回

◆ setItemTitle()

void DA::DAChartPlotItemSettingWidget::setItemTitle ( const QString &  t)

设置标题

参数
t

◆ updateUI()

void DA::DAChartPlotItemSettingWidget::updateUI ( QwtPlotItem *  item)
overridevirtual

刷新ui 此函数不会触发信号

重载 DA::DAAbstractChartItemSettingWidget .


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