QwtAbstractLegend(3)
π QwtAbstractLegend(3) π
okay so bestie, this page is from the Library Functions Manual, and it's all about QwtAbstractLegend β the abstract base class for legend widgets. It's giving "parent class energy," and honestly? Iconic. β¨
πΈ NAME πΈ
QwtAbstractLegend β Abstract base class for legend widgets.
π¦ SYNOPSIS π¦
#include <qwt_abstract_legend.h>
- Inherits:
QFrame. - Inherited by:
QwtLegend.
π Public Slots π
virtual void updateLegend (const QVariant &itemInfo, const QList< QwtLegendData > &data)=0β Update the entries for a plot item. Pure virtual slot, so your subclass has to show up and do the work. π
π Public Member Functions π
QwtAbstractLegend (QWidget *parent=NULL)β Constructor, withparentdefaulting toNULL.virtual ~QwtAbstractLegend ()β Destructor.virtual void renderLegend (QPainter *painter, const QRectF &rect, bool fillBackground) const =0β Pure virtual render function. You gotta implement it.virtual bool isEmpty () const =0β Pure virtual check for whether the legend is empty.virtual int scrollExtent (Qt::Orientation) constβ Virtual function for the scroll extent.
π Detailed Description π
Abstract base class for legend widgets. No cap. π«Ά
Legends that need to be under control of the QwtPlot layout system need to be derived from QwtAbstractLegend. That's the whole vibe.
Note: Other type of legends can be implemented by connecting to theQwtPlot::legendDataChanged()signal. But as these legends are unknown to the plot layout system the layout code ( on screen and forQwtPlotRenderer) need to be organized in application code.
- See also:
QwtLegend
Definition at line 34 of file qwt_abstract_legend.h.
π§ Constructor & Destructor Documentation π§
π QwtAbstractLegend::QwtAbstractLegend (QWidget * parent = NULL) [explicit]
Constructor. Main character constructor behavior. π
parentβ Parent widget
Definition at line 18 of file qwt_abstract_legend.cpp.
π QwtAbstractLegend::~QwtAbstractLegend () [virtual]
Destructor. Gotta clean up, bestie. π
Definition at line 24 of file qwt_abstract_legend.cpp.
π₯ Member Function Documentation π₯
β virtual bool QwtAbstractLegend::isEmpty () const [pure virtual]
- Returns:
True, when no plot item is inserted
Implemented in QwtLegend.
β virtual void QwtAbstractLegend::renderLegend (QPainter * painter, const QRectF & rect, bool fillBackground) const [pure virtual]
Render the legend into a given rectangle. Very demure, very mindful rendering. π¦
painterβ Painterrectβ Bounding rectanglefillBackgroundβ When true, fill rect with the widget background- See also:
renderLegend()is used byQwtPlotRenderer
Implemented in QwtLegend.
β int QwtAbstractLegend::scrollExtent (Qt::Orientation orientation) const [virtual]
Return the extent, that is needed for elements to scroll the legend ( usually scrollbars ),
orientationβ Orientation- Returns: Extent of the corresponding scroll element
Reimplemented in QwtLegend.
Definition at line 35 of file qwt_abstract_legend.cpp.
β virtual void QwtAbstractLegend::updateLegend (const QVariant & itemInfo, const QList< QwtLegendData > & data) [pure virtual], [slot]
Update the entries for a plot item. Your subclass has to implement this, periodt. π
itemInfoβ Info about an itemdataβ List of legend entry attributes for the item
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code.
okay that's the whole page, bestie β Qwt User's Guide source/version energy, tagged QwtAbstractLegend(3), and the footer date slot is literally blank so I'm not inventing one. π β¨
π¦ where this page comes from
- alpine 3.24: qwt-doc 6.3.0-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms