QVCandlestickModelMapper

The QVCandlestickModelMapper class is a vertical model mapper for a candlestick series. More

Inheritance diagram of PySide6.QtCharts.QVCandlestickModelMapper

Synopsis

Functions

Signals

Detailed Description

Model mappers enable using a data model derived from the QAbstractItemModel class as a data source for a chart. A vertical model mapper is used to create a connection between a data model and QCandlestickSeries , so that each column in the data model defines a candlestick item and each row maps to the open, high, low, close, and timestamp values of the candlestick item.

Both model and candlestick series properties can be used to manipulate the data. The model mapper keeps the candlestick series and the data model in sync.

The model mapper ensures that all the candlestick items in the candlestick series have equal sizes. Therefore, adding or removing a value from a candlestick item causes the same change to be made in all the candlestick items in the candlestick series.

class PySide6.QtCharts.QVCandlestickModelMapper([parent=None])
Parameters

parentPySide6.QtCore.QObject

Constructs a vertical model mapper object which is a child of parent.

PySide6.QtCharts.QVCandlestickModelMapper.closeRow()
Return type

int

This property holds The row of the model that contains the close values of the candlestick items in the series..

The default value is -1 (invalid mapping).

PySide6.QtCharts.QVCandlestickModelMapper.closeRowChanged()
PySide6.QtCharts.QVCandlestickModelMapper.firstSetColumn()
Return type

int

This property holds The column of the model that is used as the data source for the first item..

The default value is -1 (invalid mapping).

PySide6.QtCharts.QVCandlestickModelMapper.firstSetColumnChanged()
PySide6.QtCharts.QVCandlestickModelMapper.highRow()
Return type

int

This property holds The row of the model that contains the high values of the candlestick items in the series..

The default value is -1 (invalid mapping).

PySide6.QtCharts.QVCandlestickModelMapper.highRowChanged()
PySide6.QtCharts.QVCandlestickModelMapper.lastSetColumn()
Return type

int

This property holds The column of the model that is used as the data source for the last item..

The default value is -1 (invalid mapping).

PySide6.QtCharts.QVCandlestickModelMapper.lastSetColumnChanged()
PySide6.QtCharts.QVCandlestickModelMapper.lowRow()
Return type

int

This property holds The row of the model that contains the low values of the candlestick items in the series..

The default value is -1 (invalid mapping).

PySide6.QtCharts.QVCandlestickModelMapper.lowRowChanged()
PySide6.QtCharts.QVCandlestickModelMapper.openRow()
Return type

int

This property holds The row of the model that contains the open values of the candlestick items in the series..

The default value is -1 (invalid mapping).

PySide6.QtCharts.QVCandlestickModelMapper.openRowChanged()
PySide6.QtCharts.QVCandlestickModelMapper.setCloseRow(closeRow)
Parameters

closeRow – int

This property holds The row of the model that contains the close values of the candlestick items in the series..

The default value is -1 (invalid mapping).

PySide6.QtCharts.QVCandlestickModelMapper.setFirstSetColumn(firstSetColumn)
Parameters

firstSetColumn – int

This property holds The column of the model that is used as the data source for the first item..

The default value is -1 (invalid mapping).

PySide6.QtCharts.QVCandlestickModelMapper.setHighRow(highRow)
Parameters

highRow – int

This property holds The row of the model that contains the high values of the candlestick items in the series..

The default value is -1 (invalid mapping).

PySide6.QtCharts.QVCandlestickModelMapper.setLastSetColumn(lastSetColumn)
Parameters

lastSetColumn – int

This property holds The column of the model that is used as the data source for the last item..

The default value is -1 (invalid mapping).

PySide6.QtCharts.QVCandlestickModelMapper.setLowRow(lowRow)
Parameters

lowRow – int

This property holds The row of the model that contains the low values of the candlestick items in the series..

The default value is -1 (invalid mapping).

PySide6.QtCharts.QVCandlestickModelMapper.setOpenRow(openRow)
Parameters

openRow – int

This property holds The row of the model that contains the open values of the candlestick items in the series..

The default value is -1 (invalid mapping).

PySide6.QtCharts.QVCandlestickModelMapper.setTimestampRow(timestampRow)
Parameters

timestampRow – int

This property holds The row of the model that contains the timestamp values of the candlestick items in the series..

The default value is -1 (invalid mapping).

PySide6.QtCharts.QVCandlestickModelMapper.timestampRow()
Return type

int

This property holds The row of the model that contains the timestamp values of the candlestick items in the series..

The default value is -1 (invalid mapping).

PySide6.QtCharts.QVCandlestickModelMapper.timestampRowChanged()