ChartLegend Class

Header: #include <ChartLegend>
Inherits: ChartObject

Public Functions

virtual ~ChartLegend()
bool antialiasing() const
const QColor &borderColor() const
ChartLegend::LegendDirection direction() const
const QFont &font() const
ChartLegend::LegendAlignment horizontalAlignment() const
bool isMarkerVisible() const
bool isVisible() const
const QSize &markerSize() const
void setAntialiasing(bool antialiasing)
void setBorderColor(const QColor &color)
void setDirection(ChartLegend::LegendDirection direction)
void setFont(const QFont &font)
void setHorizontalAlignment(ChartLegend::LegendAlignment alignment)
void setMarkerSize(const QSize &size)
void setMarkerVisible(bool visible)
void setTextColor(const QColor &color)
void setVerticalAlignment(ChartLegend::LegendAlignment alignment)
void setVisible(bool visible)
const QColor &textColor() const
ChartLegend::LegendAlignment verticalAlignment() const

Signals

void fontChanged(QFont font)
void visibleChanged(bool visible)

Detailed Description

Member Function Documentation

[virtual noexcept] ChartLegend::~ChartLegend()

Destructor of ChartLegend.

bool ChartLegend::antialiasing() const

Returns whether antialiasing is enabled or not.

See also setAntialiasing().

const QColor &ChartLegend::borderColor() const

Returns the border color.

See also setBorderColor().

ChartLegend::LegendDirection ChartLegend::direction() const

Returns the direction of the legend.

See also setDirection().

const QFont &ChartLegend::font() const

Returns font of the legend.

Note: Getter function for property font.

See also setFont().

ChartLegend::LegendAlignment ChartLegend::horizontalAlignment() const

Returns the horizontal alignment of the legend.

See also setHorizontalAlignment().

bool ChartLegend::isMarkerVisible() const

Returns true if marker is visible and false if marker is invisible.

bool ChartLegend::isVisible() const

Returns true if the legend is visible and false if the legend is invisible.

Note: Getter function for property visible.

const QSize &ChartLegend::markerSize() const

Returns the QSize of the marker.

See also setMarkerSize().

void ChartLegend::setAntialiasing(bool antialiasing)

Enables or disables the antialiasing. Antialiasing is used for smoothing of sharp edges of text and drawing.

See also antialiasing().

void ChartLegend::setBorderColor(const QColor &color)

Sets the border color to color.

See also borderColor().

void ChartLegend::setDirection(ChartLegend::LegendDirection direction)

Sets the direction of the legend to direction.

See also direction() and LegendDirection.

void ChartLegend::setFont(const QFont &font)

Sets the font for the legend.

Note: Setter function for property font.

See also font().

void ChartLegend::setHorizontalAlignment(ChartLegend::LegendAlignment alignment)

Sets the horizontal alignment of the legend to alignment.

See also horizontalAlignment() and LegendAlignment.

void ChartLegend::setMarkerSize(const QSize &size)

Sets the marker's size.

See also markerSize().

void ChartLegend::setMarkerVisible(bool visible)

Sets the marker visibility to visible.

See also isMarkerVisible().

void ChartLegend::setTextColor(const QColor &color)

Sets the color of the text to color.

See also textColor().

void ChartLegend::setVerticalAlignment(ChartLegend::LegendAlignment alignment)

Sets the vertical alignment of the legend to alignment.

See also verticalAlignment() and LegendAlignment.

void ChartLegend::setVisible(bool visible)

Sets the visibility of legend to visible.

Note: Setter function for property visible.

See also isVisible().

const QColor &ChartLegend::textColor() const

Returns the color of the text.

See also setTextColor().

ChartLegend::LegendAlignment ChartLegend::verticalAlignment() const

Returns the vertical alignment of the legend.

See also setVerticalAlignment().