The legend widget.
Más...
#include <qwt_legend.h>
Lista de todos los miembros.
Descripción detallada
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.
- Ver también:
- QwtLegendItem, QwtLegendItemManager QwtPlot
Documentación de las enumeraciones miembro de la clase
Display policy.
- NoIdentifier
The client code is responsible how to display of each legend item. The Qwt library will not interfere.
- AutoIdentifier
Each legend item is displayed with a mode that is a bitwise or of
Default is AutoIdentifier.
- Ver también:
- setDisplayPolicy(), displayPolicy(), QwtLegendItem::IdentifierMode
- Valores de enumeraciones:
NoIdentifier |
|
FixedIdentifier |
|
AutoIdentifier |
|
Interaction mode for the legend items.
- Valores de enumeraciones:
ReadOnlyItem |
|
ClickableItem |
|
CheckableItem |
|
Documentación del constructor y destructor
QwtLegend::QwtLegend |
( |
QWidget * |
parent = NULL | ) |
[explicit] |
QwtLegend::~QwtLegend |
( |
| ) |
[virtual] |
Documentación de las funciones miembro
void QwtLegend::clear |
( |
void |
| ) |
|
QWidget * QwtLegend::contentsWidget |
( |
| ) |
|
The contents widget is the only child of the viewport() and the parent widget of all legend items.
const QWidget * QwtLegend::contentsWidget |
( |
| ) |
const |
The contents widget is the only child of the viewport() and the parent widget of all legend items.
Filters events if this object has been installed as an event filter for the watched object.
In your reimplementation of this function, if you want to filter the event e, out, i.e. stop it being handled further, return TRUE; otherwise return FALSE.
Example:
Notice in the example above that unhandled events are passed to the base class's eventFilter() function, since the base class might have reimplemented eventFilter() for its own internal purposes.
- Atención:
- If you delete the receiver object in this function, be sure to return TRUE. Otherwise, Qt will forward the event to the deleted object and the program might crash.
- Ver también:
- installEventFilter()
Reimplementado de QObject.
Find the widget that represents a plot item
- Parámetros:
-
- Devuelve:
- Widget on the legend, or NULL
Find the widget that represents a plot item
- Parámetros:
-
- Devuelve:
- Widget on the legend, or NULL
int QwtLegend::heightForWidth |
( |
int |
width | ) |
const [virtual] |
- Devuelve:
- The preferred height, for the width w.
- Parámetros:
-
Reimplementado de QWidget.
QScrollBar * QwtLegend::horizontalScrollBar |
( |
| ) |
const |
int QwtLegend::identifierMode |
( |
| ) |
const |
- Devuelve:
- the IdentifierMode to be used in combination with LegendDisplayPolicy::Fixed.
Default is ShowLine | ShowSymbol | ShowText.
Insert a new item for a plot item
- Parámetros:
-
plotItem | Plot item |
legendItem | New legend item |
- Nota:
- The parent of item will be changed to QwtLegend::contentsWidget()
bool QwtLegend::isEmpty |
( |
void |
| ) |
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().
Find the corresponding item for a plotItem and remove it from the item list.
- Parámetros:
-
void QwtLegend::resizeEvent |
( |
QResizeEvent * |
e | ) |
[protected, virtual] |
Resize event
- Parámetros:
-
Reimplementado de QFrame.
Set the legend display policy to:
- Parámetros:
-
policy | Legend display policy |
mode | Identifier mode (or'd ShowLine, ShowSymbol, ShowText) |
- Ver también:
- displayPolicy, LegendDisplayPolicy
QSize QwtLegend::sizeHint |
( |
| ) |
const [virtual] |
Return a size hint.
Reimplementado de QFrame.
QScrollBar * QwtLegend::verticalScrollBar |
( |
| ) |
const |
La documentación para esta clase fue generada a partir de los siguientes ficheros: