QVBoxPlotModelMapper Class

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

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

Properties

  • 1 property inherited from QObject

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)
  • 31 public functions inherited from QObject

Signals

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 14 protected functions inherited from QBoxPlotModelMapper
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

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:

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:

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:

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:

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:

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.