QBoxPlotModelMapper Class

The QBoxPlotModelMapper class is the base class for box plot model mapper classes. \internal. More...

Header: #include <QBoxPlotModelMapper>
Inherits: QObject
Inherited By:

QHBoxPlotModelMapper and QVBoxPlotModelMapper

Protected Functions

int count() const
int first() const
int firstBoxSetSection() const
int lastBoxSetSection() const
Qt::Orientation orientation() const
void setCount(int count)
void setFirst(int first)
void setFirstBoxSetSection(int firstBoxSetSection)
void setLastBoxSetSection(int lastBoxSetSection)
void setOrientation(Qt::Orientation orientation)

Detailed Description

\inmoduleQtCharts

Model mappers enable using a data model derived from the QAbstractItemModel class as a data source for a chart.

Member Function Documentation

[protected] int QBoxPlotModelMapper::count() const

Returns the number of rows/columns of the model that are mapped as the data for QBoxPlotSeries Minimal and default value is: -1 (count limited by the number of rows/columns in the model)

See also setCount().

[protected] int QBoxPlotModelMapper::first() const

Returns which row/column of the model contains the first values of the QBoxSets in the series. The default value is 0.

See also setFirst().

[protected] int QBoxPlotModelMapper::firstBoxSetSection() const

Returns which section of the model is used as the data source for the first box set

See also setFirstBoxSetSection().

[protected] int QBoxPlotModelMapper::lastBoxSetSection() const

Returns which section of the model is used as the data source for the last box set

See also setLastBoxSetSection().

[protected] Qt::Orientation QBoxPlotModelMapper::orientation() const

Returns the orientation that is used when QBoxPlotModelMapper accesses the model. This means whether the consecutive values of the box-and-whiskers set are read from row (Qt::Horizontal) or from columns (Qt::Vertical)

See also setOrientation().

[protected] void QBoxPlotModelMapper::setCount(int count)

Sets the count of rows/columns of the model that are mapped as the data for QBoxPlotSeries Minimal and default value is: -1 (count limited by the number of rows/columns in the model)

See also count().

[protected] void QBoxPlotModelMapper::setFirst(int first)

Sets which row/column of the model contains the first values of the QBoxSets in the series. The default value is 0.

See also first().

[protected] void QBoxPlotModelMapper::setFirstBoxSetSection(int firstBoxSetSection)

Sets the model section that is used as the data source for the first box set Parameter firstBoxSetSection specifies the section of the model.

See also firstBoxSetSection().

[protected] void QBoxPlotModelMapper::setLastBoxSetSection(int lastBoxSetSection)

Sets the model section that is used as the data source for the last box set Parameter lastBoxSetSection specifies the section of the model.

See also lastBoxSetSection().

[protected] void QBoxPlotModelMapper::setOrientation(Qt::Orientation orientation)

Returns the orientation that is used when QBoxPlotModelMapper accesses the model. This mean whether the consecutive values of the box-and-whiskers set are read from row (Qt::Horizontal) or from columns (Qt::Vertical)

See also orientation().