QwtLegend(3) | Qwt User's Guide | QwtLegend(3) |
QwtLegend -
#include <qwt_legend.h>
enum LegendDisplayPolicy { NoIdentifier = 0,
FixedIdentifier = 1, AutoIdentifier = 2 }
enum LegendItemMode { ReadOnlyItem, ClickableItem,
CheckableItem }
QwtLegend (QWidget *parent=NULL)
virtual ~QwtLegend ()
void clear ()
QWidget * contentsWidget ()
const QWidget * contentsWidget () const
LegendDisplayPolicy displayPolicy () const
virtual bool eventFilter (QObject *, QEvent *)
QWidget * find (const QwtLegendItemManager *) const
QwtLegendItemManager * find (const QWidget *) const
virtual int heightForWidth (int w) const
QScrollBar * horizontalScrollBar () const
int identifierMode () const
void insert (const QwtLegendItemManager *, QWidget *)
bool isEmpty () const
uint itemCount () const
LegendItemMode itemMode () const
virtual QList< QWidget * > legendItems () const
void remove (const QwtLegendItemManager *)
void setDisplayPolicy (LegendDisplayPolicy policy, int mode)
void setItemMode (LegendItemMode)
virtual QSize sizeHint () const
QScrollBar * verticalScrollBar () const
virtual void layoutContents ()
virtual void resizeEvent (QResizeEvent *)
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 QwtLegendItem.
See also:
Display policy. .IP "•" 2 NoIdentifier
The client code is responsible how to display of each legend item. The Qwt
library will not interfere.
Default is AutoIdentifier.
See also:
Interaction mode for the legend items. .IP "•" 2
ReadOnlyItem
The legend item is not interactive, like a label
Default is ReadOnlyItem.
See also:
Constructor
Parameters:
The contents widget is the only child of the viewport() and the parent widget of all legend items.
The contents widget is the only child of the viewport() and the parent widget of all legend items.
Returns:
See also:
Filter layout related events of QwtLegend::contentsWidget().
Parameters:
Find the widget that represents a plot item
Parameters:
Returns:
Find the widget that represents a plot item
Parameters:
Returns:
Returns:
Parameters:
Returns:
See also:
Returns:
Default is ShowLine | ShowSymbol | ShowText.
Insert a new item for a plot item
Parameters:
Note:
See also:
Adjust contents widget and item layout to the size of the viewport().
Find the corresponding item for a plotItem and remove it from the item list.
Parameters:
Resize event
Parameters:
Set the legend display policy to:
Parameters:
See also:
See also:
Returns:
See also:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 | Version 5.2.3 |