Qt 5.7 | Qt Charts | C++ Classes | QVBoxPlotModelMapper

Qt 5.7.1 Reference Documentation

# QVBoxPlotModelMapper Class

Vertical model mapper for box plot series. More...

Header: | #include <QVBoxPlotModelMapper>
Instantiated By: | VBoxPlotModelMapper
Inherits: | QBoxPlotModelMapper

- List of all members, including inherited members

## Properties

firstBoxSetColumn : int firstRow : int lastBoxSetColumn : int | model : QAbstractItemModel * rowCount : int series : QBoxPlotSeries *

## Public Functions

| QVBoxPlotModelMapper(QObject *parent = Q_NULLPTR)
int | firstBoxSetColumn() const
int | firstRow() const
int | lastBoxSetColumn() const
QAbstractItemModel * | model() const
int | rowCount() const
QBoxPlotSeries * | series() const
void | setFirstBoxSetColumn(int firstBoxSetColumn)
void | setFirstRow(int firstRow)
void | setLastBoxSetColumn(int lastBoxSetColumn)
void | setModel(QAbstractItemModel *model)
void | setRowCount(int rowCount)
void | setSeries(QBoxPlotSeries *series)

## Signals

void | firstBoxSetColumnChanged()
void | firstRowChanged()
void | lastBoxSetColumnChanged()
void | modelReplaced()
void | rowCountChanged()
void | seriesReplaced()

### Additional Inherited Members

- 14 protected functions inherited from QBoxPlotModelMapper

## Detailed Description

Vertical model mapper for box plot series.

Model mappers allow you to use QAbstractItemModel derived models as a data source for a chart series. Vertical model mapper is used to create a connection between QBoxPlotSeries and QAbstractItemModel derived model object. Model mapper maintains equal size of all the QBoxSets.

Note: used model has to support adding/removing rows/columns and modifying the data of the cells.

## Property Documentation

### firstBoxSetColumn : int

This property defines which column of the model is used as the data source for the first box-and-whiskers set.

Default value is: -1 (invalid mapping)

Access functions:

int | firstBoxSetColumn() const
void | setFirstBoxSetColumn(int firstBoxSetColumn)

Notifier signal:

void | firstBoxSetColumnChanged()

### firstRow : int

This property defines which row of the model contains the first values of the QBoxSets in the series.

Minimal and default value is: 0

Access functions:

int | firstRow() const
void | setFirstRow(int firstRow)

Notifier signal:

void | firstRowChanged()

### lastBoxSetColumn : int

This property defines which column of the model is used as the data source for the last box-and-whiskers set.

Default value is: -1 (invalid mapping)

Access functions:

int | lastBoxSetColumn() const
void | setLastBoxSetColumn(int lastBoxSetColumn)

Notifier signal:

void | lastBoxSetColumnChanged()

### model : QAbstractItemModel *

This property defines the model that is used by the mapper.

Access functions:

QAbstractItemModel * | model() const
void | setModel(QAbstractItemModel *model)

Notifier signal:

void | modelReplaced()

### rowCount : int

This property defines the number of rows of the model that are mapped as the data for QBoxPlotSeries.

Minimal and default value is: -1 (count limited by the number of rows in the model)

Access functions:

int | rowCount() const
void | setRowCount(int rowCount)

Notifier signal:

void | rowCountChanged()

### series : QBoxPlotSeries *

This property defines the QBoxPlotSeries object that is used by the mapper.

All the data in the series is discarded when it is set to the mapper. When new series is specified the old series is disconnected (it preserves its data)

Access functions:

QBoxPlotSeries * | series() const
void | setSeries(QBoxPlotSeries *series)

Notifier signal:

void | seriesReplaced()

## Member Function Documentation

### QVBoxPlotModelMapper::QVBoxPlotModelMapper(QObject *parent = Q_NULLPTR)

Constructs a mapper object which is a child of parent.

### `[signal]` void QVBoxPlotModelMapper::firstBoxSetColumnChanged()

Emitted when the firstBoxSetColumn has changed.

Note: Notifier signal for property firstBoxSetColumn.

### `[signal]` void QVBoxPlotModelMapper::firstRowChanged()

Emitted when the firstRow has changed.

Note: Notifier signal for property firstRow.

### `[signal]` void QVBoxPlotModelMapper::lastBoxSetColumnChanged()

Emitted when the lastBoxSetColumn has changed.

Note: Notifier signal for property lastBoxSetColumn.

### `[signal]` void QVBoxPlotModelMapper::modelReplaced()

Emitted when the model to which mapper is connected to has changed.

Note: Notifier signal for property model.

### `[signal]` void QVBoxPlotModelMapper::rowCountChanged()

Emitted when the rowCount has changed.

Note: Notifier signal for property rowCount.

### `[signal]` void QVBoxPlotModelMapper::seriesReplaced()

Emitted when the series to which mapper is connected to has changed.

Note: Notifier signal for property series.