QwtLegendItem(3)

πŸ“¦
version 5.2.3_qt5+git20181129.2819734 Β· 2 versions
, in opensuse-leap 16.0

✨ QwtLegendItem(3) ✨

okay bestie, buckle up β€” this is the Qwt User's Guide page for QwtLegendItem, and it's genuinely iconic πŸ’–


πŸŽ€ NAME πŸŽ€

QwtLegendItem -

ngl the original manpage left the description here completely blank 😭 so we're keeping it mysterious. The name is the whole personality. periodt.

🌸 SYNOPSIS 🌸

#include <qwt_legend_item.h>

Inherits QwtTextLabel.

🌈 Public Types

enum IdentifierMode { NoIdentifier =  0, ShowLine =  1, ShowSymbol =  2,
    ShowText =  4 }

πŸ’… Public Slots

void setChecked (bool on)

πŸ¦‹ Signals

void checked (bool)
void clicked ()
void pressed ()
void released ()

⭐ Public Member Functions

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

🧚 Protected Member Functions

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)

πŸ’– Detailed Description πŸ’–

A legend label. (yes that's the entire vibe of the description, and honestly? it ate.)

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.

"unstylish push button" β€” the original author really said that about their own widget and I respect the honesty πŸ’€

See also:

  • QwtLegend
  • QwtPlotCurve

πŸ‘‘ Member Enumeration Documentation πŸ‘‘

🌟 enum QwtLegendItem::IdentifierMode

Identifier mode. Default is ShowLine | ShowText

See also:

  • identifierMode()
  • setIdentifierMode()

πŸ“ Constructor & Destructor Documentation πŸ“

✨ QwtLegendItem::QwtLegendItem (QWidget *parent = 0) [explicit]

Parameters:

  • parent β€” Parent widget

✨ QwtLegendItem::QwtLegendItem (const QwtSymbol &symbol, const QPen &curvePen, const QwtText &text, QWidget *parent = 0) [explicit]

Parameters:

  • symbol β€” Curve symbol
  • curvePen β€” Curve pen
  • text β€” Label text
  • parent β€” Parent widget

πŸ’œ Member Function Documentation πŸ’œ

πŸŽ€ const QPen & QwtLegendItem::curvePen () const

Returns:

  • The curve pen.

See also:

  • setCurvePen()

πŸŽ€ void QwtLegendItem::drawIdentifier (QPainter *painter, const QRect &rect) const [virtual]

Paint the identifier to a given rect.

Parameters:

  • painter β€” Painter
  • rect β€” Rect where to paint

πŸŽ€ void QwtLegendItem::drawItem (QPainter *painter, const QRect &rect) const [virtual]

Draw the legend item to a given rect.

Parameters:

  • painter β€” Painter
  • rect β€” Rect where to paint the button

πŸŽ€ int QwtLegendItem::identifierMode () const

Or'd values of IdentifierMode.

See also:

  • setIdentifierMode()
  • IdentifierMode

πŸŽ€ int QwtLegendItem::identifierWidth () const

Return the width of the identifier

See also:

  • setIdentifierWidth()

πŸŽ€ QwtLegend::LegendItemMode QwtLegendItem::itemMode () const

Return the item mode

See also:

  • setItemMode()

πŸŽ€ void QwtLegendItem::setChecked (bool on) [slot]

Check/Uncheck a the item

Parameters:

  • on β€” check/uncheck

See also:

  • setItemMode()

πŸŽ€ void QwtLegendItem::setCurvePen (const QPen &pen)

Set curve pen.

Parameters:

  • pen β€” Curve pen

See also:

  • curvePen()

πŸŽ€ void QwtLegendItem::setIdentifierMode (int mode)

Set identifier mode. Default is ShowLine | ShowText.

Parameters:

  • mode β€” Or'd values of IdentifierMode

See also:

  • identifierMode()

πŸŽ€ void QwtLegendItem::setIdentifierWidth (int width)

Set the width for the identifier Default is 8 pixels

Parameters:

  • width β€” New width

See also:

  • identifierMode()
  • identifierWidth()

πŸŽ€ void QwtLegendItem::setItemMode (QwtLegend::LegendItemMode mode)

Set the item mode The default is QwtLegend::ReadOnlyItem

Parameters:

  • mode β€” Item mode

See also:

  • itemMode()

πŸŽ€ void QwtLegendItem::setSpacing (int spacing)

Change the spacing

Parameters:

  • spacing β€” Spacing

See also:

  • spacing()
  • identifierWidth()
  • QwtTextLabel::margin()

πŸŽ€ void QwtLegendItem::setSymbol (const QwtSymbol &symbol)

Set curve symbol.

Parameters:

  • symbol β€” Symbol

See also:

  • symbol()

πŸŽ€ void QwtLegendItem::setText (const QwtText &text) [virtual]

Set the text to the legend item

Parameters:

  • text β€” Text label

See also:

  • QwtTextLabel::text()

Reimplemented from QwtTextLabel.

πŸŽ€ int QwtLegendItem::spacing () const

Return the spacing

See also:

  • setSpacing()
  • identifierWidth()
  • QwtTextLabel::margin()

πŸŽ€ const QwtSymbol & QwtLegendItem::symbol () const

Returns:

  • The curve symbol.

See also:

  • setSymbol()

🌈 Author 🌈

Generated automatically by Doxygen for Qwt User's Guide from the source code.


and that's the whole page bestie, no cap, every single option and function preserved πŸ’–βœ¨

this was Qwt User's Guide, Version 5.2.3, dated Tue Nov 20 2012 β€” mwah, iconic, historic, hope this helped πŸ«ΆπŸ’…πŸŒΈ