Abstract base class for legend widgets.
More...
#include <qwt_abstract_legend.h>
|
|
virtual void | updateLegend (const QVariant &itemInfo, const QList< QwtLegendData > &data)=0 |
| |
Abstract base class for legend widgets.
Legends that need to be under control of the QwtPlot layout system need to be derived from QwtAbstractLegend.
- Note
- 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.
- See also
- QwtLegend
◆ QwtAbstractLegend()
| QwtAbstractLegend::QwtAbstractLegend |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ isEmpty()
| virtual bool QwtAbstractLegend::isEmpty |
( |
| ) |
const |
|
pure virtual |
◆ renderLegend()
| virtual void QwtAbstractLegend::renderLegend |
( |
QPainter * |
painter, |
|
|
const QRectF & |
rect, |
|
|
bool |
fillBackground |
|
) |
| const |
|
pure virtual |
◆ 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).
- Parameters
-
| orientation | Orientation (Horizontal or Vertical) |
- Returns
- Extent of the corresponding scroll element (0 by default)
Reimplemented in QwtLegend.
The documentation for this class was generated from the following files:
- /home/runner/work/QWT/QWT/src/plot/qwt_abstract_legend.h
- /home/runner/work/QWT/QWT/src/plot/qwt_abstract_legend.cpp