QHCandlestickModelMapper

The QHCandlestickModelMapper class is a horizontal model mapper for a candlestick series. More

Inheritance diagram of PySide6.QtCharts.QHCandlestickModelMapper

Synopsis

Functions

Detailed Description

Model mappers enable using a data model derived from the QAbstractItemModel class as a data source for a chart. A horizontal model mapper is used to create a connection between a data model and QCandlestickSeries , so that each row in the data model defines a candlestick item and each column 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.QHCandlestickModelMapper([parent=None])
Parameters

parentPySide6.QtCore.QObject

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

PySide6.QtCharts.QHCandlestickModelMapper.closeColumn()
Return type

int

See also

setCloseColumn()

PySide6.QtCharts.QHCandlestickModelMapper.closeColumnChanged()
PySide6.QtCharts.QHCandlestickModelMapper.firstSetRow()
Return type

int

See also

setFirstSetRow()

PySide6.QtCharts.QHCandlestickModelMapper.firstSetRowChanged()
PySide6.QtCharts.QHCandlestickModelMapper.highColumn()
Return type

int

See also

setHighColumn()

PySide6.QtCharts.QHCandlestickModelMapper.highColumnChanged()
PySide6.QtCharts.QHCandlestickModelMapper.lastSetRow()
Return type

int

See also

setLastSetRow()

PySide6.QtCharts.QHCandlestickModelMapper.lastSetRowChanged()
PySide6.QtCharts.QHCandlestickModelMapper.lowColumn()
Return type

int

See also

setLowColumn()

PySide6.QtCharts.QHCandlestickModelMapper.lowColumnChanged()
PySide6.QtCharts.QHCandlestickModelMapper.openColumn()
Return type

int

See also

setOpenColumn()

PySide6.QtCharts.QHCandlestickModelMapper.openColumnChanged()
PySide6.QtCharts.QHCandlestickModelMapper.setCloseColumn(closeColumn)
Parameters

closeColumn – int

See also

closeColumn()

PySide6.QtCharts.QHCandlestickModelMapper.setFirstSetRow(firstSetRow)
Parameters

firstSetRow – int

See also

firstSetRow()

PySide6.QtCharts.QHCandlestickModelMapper.setHighColumn(highColumn)
Parameters

highColumn – int

See also

highColumn()

PySide6.QtCharts.QHCandlestickModelMapper.setLastSetRow(lastSetRow)
Parameters

lastSetRow – int

See also

lastSetRow()

PySide6.QtCharts.QHCandlestickModelMapper.setLowColumn(lowColumn)
Parameters

lowColumn – int

See also

lowColumn()

PySide6.QtCharts.QHCandlestickModelMapper.setOpenColumn(openColumn)
Parameters

openColumn – int

See also

openColumn()

PySide6.QtCharts.QHCandlestickModelMapper.setTimestampColumn(timestampColumn)
Parameters

timestampColumn – int

PySide6.QtCharts.QHCandlestickModelMapper.timestampColumn()
Return type

int

PySide6.QtCharts.QHCandlestickModelMapper.timestampColumnChanged()