QCandlestickModelMapper Class
Abstract model mapper class for candlestick series. More...
| Header: | #include <QCandlestickModelMapper> |
| Since: | Qt 5.8 |
| Inherits: | QObject |
| Inherited By: |
This class was introduced in Qt 5.8.
Properties
Public Functions
| QAbstractItemModel * | model() const |
| QCandlestickSeries * | series() const |
| void | setModel(QAbstractItemModel *model) |
| void | setSeries(QCandlestickSeries *series) |
Signals
| void | modelReplaced() |
| void | seriesReplaced() |
Detailed Description
Model mappers allow the use of a QAbstractItemModel-derived model as a data source for a chart series, creating a connection between a QCandlestickSeries and the model object. A model mapper maintains an equal size across all QCandlestickSets.
Note: The model used must support adding and removing rows/columns and modifying the data of the cells.
Property Documentation
model : QAbstractItemModel*
Defines the model that is used by the mapper.
Access functions:
| QAbstractItemModel * | model() const |
| void | setModel(QAbstractItemModel *model) |
Notifier signal:
| void | modelReplaced() |
series : QtCharts::QCandlestickSeries*
Defines the QCandlestickSeries object that is used by the mapper.
Note: All data in the series is discarded when it is set to the mapper. When a new series is specified, the old series is disconnected (preserving its data).
Access functions:
| QCandlestickSeries * | series() const |
| void | setSeries(QCandlestickSeries *series) |
Notifier signal:
| void | seriesReplaced() |