#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 | 
 
 
Member Function Documentation
      
        
          | QWidget * QwtLegend::contentsWidget | ( |  | ) |  | 
      
 
The contents widget is the only child of the viewport of the internal QScrollArea and the parent widget of all legend items.
- Returns:
- Container widget of the legend items 
 
 
      
        
          | const QWidget * QwtLegend::contentsWidget | ( |  | ) | const | 
      
 
The contents widget is the only child of the viewport of the internal QScrollArea and the parent widget of all legend items.
- Returns:
- Container widget of the legend items 
 
 
  
  | 
        
          | bool QwtLegend::eventFilter | ( | QObject * | object, |  
          |  |  | QEvent * | event |  
          |  | ) |  |  |  | virtual | 
 
Handle QEvent::ChildRemoved andQEvent::LayoutRequest events for the contentsWidget().
- Parameters:
- 
  
    | object | Object to be filtered |  | event | Event |  
 
 
 
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 contentsWidget() 
 
 
  
  | 
        
          | void QwtLegend::layoutContents | ( |  | ) |  |  | protectedvirtual | 
 
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:
- 
  
  
 
 
      
        
          | QScrollBar * QwtLegend::verticalScrollBar | ( |  | ) | const |