|
DAWorkbench 0.0.1
DAWorkbench API
|
QwtPlotItem的设置窗口 更多...
#include <DAChartPlotItemSettingWidget.h>
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 > | |
| T | d_cast () |
| 快捷转换为别的item | |
| template<typename T > | |
| 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的设置窗口
| QPair< int, int > DA::DAChartPlotItemSettingWidget::getAxisIDs | ( | ) | const |
获取axis信息
| QString DA::DAChartPlotItemSettingWidget::getItemTitle | ( | ) | const |
标题
| void DA::DAChartPlotItemSettingWidget::setItemTitle | ( | const QString & | t | ) |
设置标题
| t |
|
overridevirtual |
刷新ui 此函数不会触发信号