VXYModelMapper QML Type
|Import Statement:||import QtCharts 2.2|
VXYModelMapper allows you to use your own QAbstractItemModel derived model with data in columns as a data source for XYSeries based series. It is possible to use both QAbstractItemModel and XYSeries data API to manipulate data. VXYModelMapper keeps the series and the model in sync.
Defines which row of the model contains the data for the first point of the series. The default value is 0.
The QAbstractItemModel based model that is used by the mapper. You need to implement the model and expose it to QML. Note: the model has to support adding/removing rows/columns and modifying the data of the cells.
Defines the number of rows of the model that are mapped as the data for series. The default value is -1 (count limited by the number of rows in the model).
series : XYSeries
Defines the XYSeries 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).
Defines which column of the model is kept in sync with the x values of the series. Default value is -1 (invalid mapping).
Defines which column of the model is kept in sync with the y values of the series. Default value is -1 (invalid mapping).
© 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.