QwtLegend Class Reference
The legend widget.
More...
#include <qwt_legend.h>
List of all members.
Detailed Description
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:
- QwtLegendItem, QwtLegendItemManager QwtPlot
Member Enumeration Documentation
Constructor & Destructor Documentation
QwtLegend::QwtLegend |
( |
QWidget * |
parent = NULL |
) |
[explicit] |
QwtLegend::~QwtLegend |
( |
|
) |
[virtual] |
Member Function Documentation
void QwtLegend::clear |
( |
|
) |
|
const QWidget * QwtLegend::contentsWidget |
( |
|
) |
const |
The contents widget is the only child of the viewport() and the parent widget of all legend items.
QWidget * QwtLegend::contentsWidget |
( |
|
) |
|
The contents widget is the only child of the viewport() and the parent widget of all legend items.
bool QwtLegend::eventFilter |
( |
QObject * |
o, |
|
|
QEvent * |
e | |
|
) |
| | [virtual] |
Find the widget that represents a plot item
- Parameters:
-
- Returns:
- Widget on the legend, or NULL
Find the widget that represents a plot item
- Parameters:
-
- Returns:
- Widget on the legend, or NULL
int QwtLegend::heightForWidth |
( |
int |
width |
) |
const [virtual] |
- Returns:
- The preferred height, for the width w.
- Parameters:
-
QScrollBar * QwtLegend::horizontalScrollBar |
( |
|
) |
const |
Insert a new item for a plot item
- Parameters:
-
| plotItem | Plot item |
| legendItem | New legend item |
- Note:
- The parent of item will be changed to QwtLegend::contentsWidget()
bool QwtLegend::isEmpty |
( |
|
) |
const |
Return true, if there are no legend items.
uint QwtLegend::itemCount |
( |
|
) |
const |
Return the number of legend items.
void QwtLegend::layoutContents |
( |
|
) |
[protected, virtual] |
Adjust contents widget and item layout to the size of the viewport().
QList< QWidget * > QwtLegend::legendItems |
( |
|
) |
const [virtual] |
Return a list of all legend items.
Find the corresponding item for a plotItem and remove it from the item list.
- Parameters:
-
void QwtLegend::resizeEvent |
( |
QResizeEvent * |
e |
) |
[protected, virtual] |
QSize QwtLegend::sizeHint |
( |
|
) |
const [virtual] |
QScrollBar * QwtLegend::verticalScrollBar |
( |
|
) |
const |