QBarSet Class

The QBarSet class represents one set of bars in a bar chart. More...

Header: #include <QBarSet>
Instantiated By: BarSet
Inherits: QObject

Properties

Public Functions

QColor borderColor()
QBrush brush() const
QColor color()
QString label() const
QBrush labelBrush() const
QColor labelColor()
QFont labelFont() const
QPen pen() const
void setBorderColor(QColor color)
void setBrush(const QBrush &brush)
void setColor(QColor color)
void setLabel(const QString label)
void setLabelBrush(const QBrush &brush)
void setLabelColor(QColor color)
void setLabelFont(const QFont &font)
void setPen(const QPen &pen)

Signals

void borderColorChanged(QColor color)
void brushChanged()
void colorChanged(QColor color)
void labelBrushChanged()
void labelChanged()
void labelColorChanged(QColor color)
void labelFontChanged()
void penChanged()

Detailed Description

A bar set contains one data value for each category. The first value of a set is assumed to belong to the first category, the second one to the second category, and so on. If the set has fewer values than there are categories, the missing values are assumed to be located at the end of the set. For missing values in the middle of a set, the numerical value of zero is used. Labels for zero value sets are not shown.

See also QAbstractBarSeries, QBarSeries, QStackedBarSeries, QPercentBarSeries, QHorizontalBarSeries, QHorizontalStackedBarSeries, and QHorizontalPercentBarSeries.

Property Documentation

borderColor : QColor

This property holds the line (pen) color of the bar set.

Access functions:

QColor borderColor()
void setBorderColor(QColor color)

Notifier signal:

void borderColorChanged(QColor color)

brush : QBrush

This property holds the brush used to fill the bars in the bar set.

Access functions:

QBrush brush() const
void setBrush(const QBrush &brush)

Notifier signal:

void brushChanged()

color : QColor

This property holds the fill (brush) color of the bar set.

Access functions:

QColor color()
void setColor(QColor color)

Notifier signal:

void colorChanged(QColor color)

label : QString

This property holds the label of the bar set.

Access functions:

QString label() const
void setLabel(const QString label)

Notifier signal:

void labelChanged()

labelBrush : QBrush

This property holds the brush used to draw the bar set's label.

Access functions:

QBrush labelBrush() const
void setLabelBrush(const QBrush &brush)

Notifier signal:

void labelBrushChanged()

labelColor : QColor

This property holds the text (label) color of the bar set.

Access functions:

QColor labelColor()
void setLabelColor(QColor color)

Notifier signal:

void labelColorChanged(QColor color)

labelFont : QFont

This property holds the font used to draw the bar set's label.

Access functions:

QFont labelFont() const
void setLabelFont(const QFont &font)

Notifier signal:

void labelFontChanged()

pen : QPen

This property holds the pen used to draw the lines of bars in the bar set.

Access functions:

QPen pen() const
void setPen(const QPen &pen)

Notifier signal:

void penChanged()