QwtLegendItem(3) | Qwt User's Guide | QwtLegendItem(3) |
QwtLegendItem -
#include <qwt_legend_item.h>
Inherits QwtTextLabel.
enum IdentifierMode { NoIdentifier = 0,
ShowLine = 1, ShowSymbol = 2, ShowText = 4 }
void setChecked (bool on)
void checked (bool)
void clicked ()
void pressed ()
void released ()
QwtLegendItem (QWidget *parent=0)
QwtLegendItem (const QwtSymbol &, const QPen &, const
QwtText &, QWidget *parent=0)
virtual ~QwtLegendItem ()
const QPen & curvePen () const
virtual void drawIdentifier (QPainter *, const QRect &) const
virtual void drawItem (QPainter *p, const QRect &) const
int identifierMode () const
int identifierWidth () const
bool isChecked () const
QwtLegend::LegendItemMode itemMode () const
void setCurvePen (const QPen &)
void setIdentifierMode (int)
void setIdentifierWidth (int width)
void setItemMode (QwtLegend::LegendItemMode)
void setSpacing (int spacing)
void setSymbol (const QwtSymbol &)
virtual void setText (const QwtText &)
virtual QSize sizeHint () const
int spacing () const
const QwtSymbol & symbol () const
virtual void drawText (QPainter *, const QRect &)
bool isDown () const
virtual void keyPressEvent (QKeyEvent *)
virtual void keyReleaseEvent (QKeyEvent *)
virtual void mousePressEvent (QMouseEvent *)
virtual void mouseReleaseEvent (QMouseEvent *)
virtual void paintEvent (QPaintEvent *)
void setDown (bool)
A legend label.
QwtLegendItem represents a curve on a legend. It displays an curve identifier with an explaining text. The identifier might be a combination of curve symbol and line. In readonly mode it behaves like a label, otherwise like an unstylish push button.
See also:
Identifier mode. Default is ShowLine | ShowText
See also:
Parameters:
Parameters:
Returns:
See also:
Paint the identifier to a given rect.
Parameters:
Draw the legend item to a given rect.
Parameters:
Or'd values of IdentifierMode.
See also:
Return the width of the identifier
See also:
Return the item mode
See also:
Check/Uncheck a the item
Parameters:
See also:
Set curve pen.
Parameters:
See also:
Set identifier mode. Default is ShowLine | ShowText.
Parameters:
See also:
Set the width for the identifier Default is 8 pixels
Parameters:
See also:
Set the item mode The default is QwtLegend::ReadOnlyItem
Parameters:
See also:
Change the spacing
Parameters:
See also:
Set curve symbol.
Parameters:
See also:
Set the text to the legend item
Parameters:
See also:
Reimplemented from QwtTextLabel.
Return the spacing
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 |