QwtLegend(3) | Qwt User's Guide | QwtLegend(3) |
QwtLegend - The legend widget.
#include <qwt_legend.h>
Inherits QwtAbstractLegend.
virtual void updateLegend (const QVariant &, const
QList< QwtLegendData > &)
Update the entries for an item.
void clicked (const QVariant &itemInfo, int
index)
void checked (const QVariant &itemInfo, bool on, int index)
QwtLegend (QWidget *parent=NULL)
virtual ~QwtLegend ()
Destructor. void setMaxColumns (uint numColums)
Set the maximum number of entries in a row. uint maxColumns () const
void setDefaultItemMode (QwtLegendData::Mode)
Set the default mode for legend labels. QwtLegendData::Mode
defaultItemMode () const
QWidget * contentsWidget ()
const QWidget * contentsWidget () const
QWidget * legendWidget (const QVariant &) const
QList< QWidget * > legendWidgets (const QVariant &) const
QVariant itemInfo (const QWidget *) const
virtual bool eventFilter (QObject *, QEvent *)
virtual QSize sizeHint () const
Return a size hint. virtual int heightForWidth (int width) const
QScrollBar * horizontalScrollBar () const
QScrollBar * verticalScrollBar () const
virtual void renderLegend (QPainter *, const QRectF &, bool
fillBackground) const
virtual void renderItem (QPainter *, const QWidget *, const QRectF
&, bool fillBackground) const
virtual bool isEmpty () const
virtual int scrollExtent (Qt::Orientation) const
void itemClicked ()
void itemChecked (bool)
virtual QWidget * createWidget (const QwtLegendData
&) const
Create a widget to be inserted into the legend. virtual void
updateWidget (QWidget *widget, const QwtLegendData &)
Update the widget.
The legend widget.
The QwtLegend widget is a tabular arrangement of legend items. Legend items might be any type of widget, but in general they will be a QwtLegendLabel.
See also:
Constructor
Parameters:
A signal which is emitted when the user has clicked on a legend label, which is in QwtLegendData::Checkable mode
Parameters:
Note:
See also:
A signal which is emitted when the user has clicked on a legend label, which is in QwtLegendData::Clickable mode.
Parameters:
Note:
See also:
The contents widget is the only child of the viewport of the internal QScrollArea and the parent widget of all legend items.
Returns:
The contents widget is the only child of the viewport of the internal QScrollArea and the parent widget of all legend items.
Returns:
Create a widget to be inserted into the legend. The default implementation returns a QwtLegendLabel.
Parameters:
Returns:
Note:
Returns:
See also:
Handle QEvent::ChildRemoved andQEvent::LayoutRequest events for the contentsWidget().
Parameters:
Returns:
Returns:
Parameters:
Returns:
See also:
Returns:
Implements QwtAbstractLegend.
Called internally when the legend has been checked Emits a checked() signal.
Called internally when the legend has been clicked on. Emits a clicked() signal.
Find the item that is associated to a widget
Parameters:
Returns:
See also:
Returns:
Parameters:
See also:
Note:
Returns:
Parameters:
See also:
Returns:
See also:
Render a legend entry into a given rectangle.
Parameters:
Note:
Render the legend into a given rectangle.
Parameters:
See also:
Implements QwtAbstractLegend.
Return the extent, that is needed for the scrollbars
Parameters:
Returns:
Reimplemented from QwtAbstractLegend.
Set the default mode for legend labels. Legend labels will be constructed according to the attributes in a QwtLegendData object. When it doesn't contain a value for the QwtLegendData::ModeRole the label will be initialized with the default mode of the legend.
Parameters:
See also:
Note:
Set the maximum number of entries in a row. F.e when the maximum is set to 1 all items are aligned vertically. 0 means unlimited
Parameters:
See also:
Update the entries for an item.
Parameters:
Update the widget.
Parameters:
See also:
Note:
Returns:
See also:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |