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

Abstract base class for legend widgets 更多...

#include <qwt_abstract_legend.h>

类 QwtAbstractLegend 继承关系图:
QwtLegend

Public 槽

virtual void updateLegend (const QVariant &itemInfo, const QList< QwtLegendData > &data)=0
 

Public 成员函数

 QwtAbstractLegend (QWidget *parent=nullptr)
 Constructor for QwtAbstractLegend
 
 ~QwtAbstractLegend () override
 Destructor for QwtAbstractLegend
 
virtual void renderLegend (QPainter *painter, const QRectF &rect, bool fillBackground) const =0
 
virtual bool isEmpty () const =0
 
virtual int scrollExtent (Qt::Orientation) const
 Return the extent needed for scroll elements
 

详细描述

Abstract base class for legend widgets

Legends that need to be under control of the QwtPlot layout system need to be derived from QwtAbstractLegend.

注解
Other type of legends can be implemented by connecting to the QwtPlot::legendDataChanged() signal. But as these legends are unknown to the plot layout system the layout code (on screen and for QwtPlotRenderer) need to be organized in application code.
参见
QwtLegend

构造及析构函数说明

◆ QwtAbstractLegend()

QwtAbstractLegend::QwtAbstractLegend ( QWidget *  parent = nullptr)
explicit

Constructor for QwtAbstractLegend

参数
parentParent widget

成员函数说明

◆ isEmpty()

virtual bool QwtAbstractLegend::isEmpty ( ) const
pure virtual

QwtLegend 内被实现.

◆ renderLegend()

virtual void QwtAbstractLegend::renderLegend ( QPainter *  painter,
const QRectF &  rect,
bool  fillBackground 
) const
pure virtual

QwtLegend 内被实现.

◆ scrollExtent()

int QwtAbstractLegend::scrollExtent ( Qt::Orientation  orientation) const
virtual

Return the extent needed for scroll elements

Returns the space needed for elements to scroll the legend (usually scrollbars).

参数
orientationOrientation (Horizontal or Vertical)
返回
Extent of the corresponding scroll element (0 by default)

QwtLegend 重载.


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