QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | List of all members
QwtAbstractLegend Class Referenceabstract

Abstract base class for legend widgets. More...

#include <qwt_abstract_legend.h>

Inheritance diagram for QwtAbstractLegend:
QwtLegend

Public Slots

virtual void updateLegend (const QVariant &itemInfo, const QList< QwtLegendData > &data)=0
 Update the entries for a plot item.
 

Public Member Functions

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

Detailed Description

Abstract base class for legend widgets.

Constructor & Destructor Documentation

◆ QwtAbstractLegend()

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

Constructor for QwtAbstractLegend.

◆ ~QwtAbstractLegend()

QwtAbstractLegend::~QwtAbstractLegend ( )
virtual

Destructor for QwtAbstractLegend .

Member Function Documentation

◆ isEmpty()

virtual bool QwtAbstractLegend::isEmpty ( ) const
pure virtual

Implemented in QwtLegend.

◆ renderLegend()

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

Render the legend into a given rectangle.

Implemented in QwtLegend.

◆ scrollExtent()

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

Return the extent needed for scroll elements.

Reimplemented in QwtLegend.

◆ updateLegend

virtual void QwtAbstractLegend::updateLegend ( const QVariant &  itemInfo,
const QList< QwtLegendData > &  data 
)
pure virtualslot

Update the entries for a plot item.


The documentation for this class was generated from the following files: