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

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.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.