QHXYModelMapper Class
Horizontal model mapper for QXYSeries. More...
Header: | #include <QHXYModelMapper> |
Instantiated By: | HXYModelMapper |
Inherits: | QXYModelMapper |
Properties
|
- 1 property inherited from QObject
Public Functions
QHXYModelMapper(QObject *parent = Q_NULLPTR) | |
int | columnCount() const |
int | firstColumn() const |
QAbstractItemModel * | model() const |
QXYSeries * | series() const |
void | setColumnCount(int columnCount) |
void | setFirstColumn(int firstColumn) |
void | setModel(QAbstractItemModel *model) |
void | setSeries(QXYSeries *series) |
void | setXRow(int xRow) |
void | setYRow(int yRow) |
int | xRow() const |
int | yRow() const |
- 31 public functions inherited from QObject
Signals
void | columnCountChanged() |
void | firstColumnChanged() |
void | modelReplaced() |
void | seriesReplaced() |
void | xRowChanged() |
void | yRowChanged() |
- 2 signals inherited from QObject
Additional Inherited Members
- 1 public slot inherited from QObject
- 11 static public members inherited from QObject
- 6 protected functions inherited from QXYModelMapper
- 9 protected functions inherited from QObject
Detailed Description
Horizontal model mapper for QXYSeries.
Model mappers allow you to use QAbstractItemModel derived models as a data source for a chart series. Horizontal model mapper is used to create a connection between QXYSeries and QAbstractItemModel derived model object. It is possible to use both QAbstractItemModel and QXYSeries model API. QXYModelMapper makes sure that QXYSeries and the model are kept in sync. Note: used model has to support adding/removing rows/columns and modifying the data of the cells.
Property Documentation
columnCount : int
This property defines the number of columns of the model that are mapped as the data for series.
Minimal and default value is: -1 (count limited by the number of columns in the model)
Access functions:
int | columnCount() const |
void | setColumnCount(int columnCount) |
Notifier signal:
void | columnCountChanged() |
firstColumn : int
This property defines which column of the model contains the data for the first point of the series.
Minimal and default value is: 0
Access functions:
int | firstColumn() const |
void | setFirstColumn(int firstColumn) |
Notifier signal:
void | firstColumnChanged() |
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() |
series : QXYSeries *
This property defines the QXYSeries 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:
QXYSeries * | series() const |
void | setSeries(QXYSeries *series) |
Notifier signal:
void | seriesReplaced() |
xRow : int
This property defines which row of the model is kept in sync with the x values of the QXYSeries.
Default value is: -1 (invalid mapping)
Access functions:
int | xRow() const |
void | setXRow(int xRow) |
Notifier signal:
void | xRowChanged() |
yRow : int
This property defines which row of the model is kept in sync with the y values of the QXYSeries.
Default value is: -1 (invalid mapping)
Access functions:
int | yRow() const |
void | setYRow(int yRow) |
Notifier signal:
void | yRowChanged() |
Member Function Documentation
QHXYModelMapper::QHXYModelMapper(QObject *parent = Q_NULLPTR)
Constructs a mapper object which is a child of parent.
[signal]
void QHXYModelMapper::columnCountChanged()
Emitted when the columnCount has changed.
Note: Notifier signal for property columnCount.
[signal]
void QHXYModelMapper::firstColumnChanged()
Emitted when the firstColumn has changed.
Note: Notifier signal for property firstColumn.
[signal]
void QHXYModelMapper::modelReplaced()
Emitted when the model to which mapper is connected to has changed.
Note: Notifier signal for property model.
[signal]
void QHXYModelMapper::seriesReplaced()
Emitted when the series to which mapper is connected to has changed.
Note: Notifier signal for property series.
[signal]
void QHXYModelMapper::xRowChanged()
Emitted when the xRow has changed.
Note: Notifier signal for property xRow.
[signal]
void QHXYModelMapper::yRowChanged()
Emitted when the yRow has changed.
Note: Notifier signal for property yRow.
© 2017 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.