QLegendMarker Class▲
- 
          Header: QLegendMarker 
- 
          Inherits: QObject 
- 
          Inherited By: QAreaLegendMarker, QBarLegendMarker, QBoxPlotLegendMarker, QCandlestickLegendMarker, QPieLegendMarker, and QXYLegendMarker 
Detailed Description▲
A legend marker consists of an icon and a label. The icon color corresponds to the color used to draw a series and the label displays the name of the series (or the label of the slice for a pie series or bar set for a bar series). A legend marker is always related to one series, slice, or bar set.
See Also▲
See also QLegend
Member Type Documentation▲
enum QLegendMarker::LegendMarkerType▲
The type of the legend marker object.
| Constant | Value | Description | 
|---|---|---|
| QLegendMarker::LegendMarkerTypeArea | 0 | A legend marker for an area series. | 
| QLegendMarker::LegendMarkerTypeBar | 1 | A legend marker for a bar set. | 
| QLegendMarker::LegendMarkerTypePie | 2 | A legend marker for a pie slice. | 
| QLegendMarker::LegendMarkerTypeXY | 3 | A legend marker for a line, spline, or scatter series. | 
| QLegendMarker::LegendMarkerTypeBoxPlot | 4 | A legend marker for a box plot series. | 
| QLegendMarker::LegendMarkerTypeCandlestick | 5 | A legend marker for a candlestick series. | 
Property Documentation▲
brush : QBrush▲
This property holds the brush used to fill the icon.
Access functions:
Notifier signal:
- 
              void brushChanged() 
font : QFont▲
label : QString▲
This property holds the text shown in the legend for a legend marker.
Access functions:
Notifier signal:
- 
              void labelChanged() 
labelBrush : QBrush▲
This property holds the brush of the label.
Access functions:
- 
              labelBrush() const 
- 
              void setLabelBrush(const &brush) 
Notifier signal:
- 
              void labelBrushChanged() 
pen : QPen▲
This property holds the pen used to draw the outline of the icon.
Access functions:
Notifier signal:
- 
              void penChanged() 
shape : QLegend::MarkerShape▲
The shape of the legend marker. Defaults to QLegend::MarkerShapeDefault, which indicates the shape is determined by QLegend::markerShape property.
Access functions:
- 
              shape() const 
- 
              void setShape( shape) 
Notifier signal:
- 
              void shapeChanged() 
visible : bool▲
This property holds the visibility of the legend marker.
The visibility affects both the legend marker label and the icon.
Access functions:
- 
              bool isVisible() const 
- 
              void setVisible(bool visible) 
Notifier signal:
- 
              void visibleChanged() 
Member Function Documentation▲
[virtual] QLegendMarker::~QLegendMarker()▲
Removes the legend marker.
QBrush QLegendMarker::brush() const▲
Returns the brush used to fill the icon.
Getter function for property brush.
See Also▲
See also setBrush()
void QLegendMarker::brushChanged()▲
This signal is emitted when the brush of the legend marker has changed.
Notifier signal for property brush.
void QLegendMarker::clicked()▲
This signal is emitted when the legend marker is clicked.
QFont QLegendMarker::font() const▲
void QLegendMarker::fontChanged()▲
This signal is emitted when the (label) font of the legend marker has changed.
Notifier signal for property font.
void QLegendMarker::hovered(bool status)▲
This signal is emitted when a mouse is hovered over the legend marker. When the mouse moves over the marker, status turns true, and when the mouse moves away again, it turns false.
bool QLegendMarker::isVisible() const▲
Returns the visibility of the marker.
Getter function for property visible.
QString QLegendMarker::label() const▲
QBrush QLegendMarker::labelBrush() const▲
Returns the brush that is used to draw the label.
Getter function for property labelBrush.
See Also▲
See also setLabelBrush()
void QLegendMarker::labelBrushChanged()▲
This signal is emitted when the label brush of the legend marker has changed.
Notifier signal for property labelBrush.
void QLegendMarker::labelChanged()▲
This signal is emitted when the label of the legend marker has changed.
Notifier signal for property label.
QPen QLegendMarker::pen() const▲
Returns the pen used to draw the outline of the icon.
Getter function for property pen.
See Also▲
See also setPen()
void QLegendMarker::penChanged()▲
This signal is emitted when the pen of the legend marker has changed.
Notifier signal for property pen.
[pure virtual] QAbstractSeries *QLegendMarker::series()▲
Returns a pointer to the series that is related to this legend marker. A legend marker is always related to a series.
void QLegendMarker::setBrush(const QBrush &brush)▲
Sets the brush used to fill the icon to brush.
Changing the color of the series also changes the color of the icon.
Setter function for property brush.
See Also▲
See also brush()
void QLegendMarker::setFont(const QFont &font)▲
void QLegendMarker::setLabel(const QString &label)▲
Sets the label of the marker to label.
Changing the name of a series also changes the label of its marker.
Setter function for property label.
See Also▲
See also label()
void QLegendMarker::setLabelBrush(const QBrush &brush)▲
Sets the the brush used to draw to label to brush.
Setter function for property labelBrush.
See Also▲
See also labelBrush()
void QLegendMarker::setPen(const QPen &pen)▲
Sets the pen used to draw the outline of the icon to pen.
Setter function for property pen.
See Also▲
See also pen()
void QLegendMarker::setVisible(bool visible)▲
Sets the marker's visibility to visible.
Setter function for property visible.
See Also▲
See also isVisible()
[pure virtual] QLegendMarker::LegendMarkerType QLegendMarker::type()▲
Returns the type of the legend marker for the related series, pie slice, or bar set.
See Also▲
See also LegendMarkerType
void QLegendMarker::visibleChanged()▲
This signal is emitted when the visibility of the legend marker has changed.
Notifier signal for property visible.





