QBoxSet Class

The QBoxSet class represents one item in a box-and-whiskers chart. More...

Header: #include <QBoxSet>
Instantiated By: BoxSet
Inherits: QObject

Public Types

enum ValuePositions { LowerExtreme, LowerQuartile, Median, UpperQuartile, UpperExtreme }

Properties

Public Functions

QBrush brush() const
QPen pen() const
void setBrush(const QBrush &brush)
void setPen(const QPen &pen)

Signals

void brushChanged()
void penChanged()

Detailed Description

A box-and-whiskers item is a graphical representation of a range and three median values that is constructed from five different values. There are two ways to specify the values. The first one is by using a constructor or stream operator (<<). The values have to be specified in the following order: lower extreme, lower quartile, median, upper quartile, and upper extreme.

The second way is to create an empty QBoxSet instance and specify the values using the setValue() method.

See the box-and-whiskers chart example to learn how to create a box-and-whiskers chart.

See also QBoxPlotSeries.

Member Type Documentation

enum QBoxSet::ValuePositions

This enum type defines the values of a box-and-whiskers item:

ConstantValueDescription
QBoxSet::LowerExtreme0The smallest value of the box-and-whiskers item.
QBoxSet::LowerQuartile1The median value of the lower half of the box-and-whiskers item.
QBoxSet::Median2The median value of the box-and-whiskers item.
QBoxSet::UpperQuartile3The median value of the upper half of the box-and-whiskers item.
QBoxSet::UpperExtreme4The largest value of the box-and-whiskers item.

Property Documentation

brush : QBrush

This property holds the brush used fill the box of the box-and-whiskers item.

Access functions:

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

Notifier signal:

void brushChanged()

pen : QPen

This property holds the pen used to draw the lines of the box-and-whiskers item.

Access functions:

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

Notifier signal:

void penChanged()