QCandlestickModelMapper

Abstract model mapper class for candlestick series. More

Inheritance diagram of PySide6.QtCharts.QCandlestickModelMapper

Inherited by: QVCandlestickModelMapper, QHCandlestickModelMapper

Synopsis

Functions

Virtual functions

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.

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

parentPySide6.QtCore.QObject

Constructs a model mapper object as a child of parent.

PySide6.QtCharts.QCandlestickModelMapper.close()
Return type

int

Returns the row/column of the model that contains the close values of the sets in the series. Default value is -1 (invalid mapping).

See also

setClose()

PySide6.QtCharts.QCandlestickModelMapper.firstSetSection()
Return type

int

Returns the section of the model that is used as the data source for the first candlestick set. Default value is -1 (invalid mapping).

PySide6.QtCharts.QCandlestickModelMapper.high()
Return type

int

Returns the row/column of the model that contains the high values of the sets in the series. Default value is -1 (invalid mapping).

See also

setHigh()

PySide6.QtCharts.QCandlestickModelMapper.lastSetSection()
Return type

int

Returns the section of the model that is used as the data source for the last candlestick set. Default value is -1 (invalid mapping).

PySide6.QtCharts.QCandlestickModelMapper.low()
Return type

int

Returns the row/column of the model that contains the low values of the sets in the series. Default value is -1 (invalid mapping).

See also

setLow()

PySide6.QtCharts.QCandlestickModelMapper.model()
Return type

PySide6.QtCore.QAbstractItemModel

See also

setModel()

PySide6.QtCharts.QCandlestickModelMapper.modelReplaced()
PySide6.QtCharts.QCandlestickModelMapper.open()
Return type

int

Returns the row/column of the model that contains the open values of the sets in the series. Default value is -1 (invalid mapping).

See also

setOpen()

PySide6.QtCharts.QCandlestickModelMapper.orientation()
Return type

Orientation

PySide6.QtCharts.QCandlestickModelMapper.series()
Return type

PySide6.QtCharts.QCandlestickSeries

See also

setSeries()

PySide6.QtCharts.QCandlestickModelMapper.seriesReplaced()
PySide6.QtCharts.QCandlestickModelMapper.setClose(close)
Parameters

close – int

Sets the row/column of the model that contains the close values of the sets in the series. Default value is -1 (invalid mapping).

See also

close()

PySide6.QtCharts.QCandlestickModelMapper.setFirstSetSection(firstSetSection)
Parameters

firstSetSection – int

Sets the section of the model that is used as the data source for the first candlestick set. Parameter firstSetSection specifies the section of the model. Default value is -1.

PySide6.QtCharts.QCandlestickModelMapper.setHigh(high)
Parameters

high – int

Sets the row/column of the model that contains the high values of the sets in the series. Default value is -1 (invalid mapping).

See also

high()

PySide6.QtCharts.QCandlestickModelMapper.setLastSetSection(lastSetSection)
Parameters

lastSetSection – int

Sets the section of the model that is used as the data source for the last candlestick set. Parameter lastSetSection specifies the section of the model. Default value is -1.

See also

lastSetSection()

PySide6.QtCharts.QCandlestickModelMapper.setLow(low)
Parameters

low – int

Sets the row/column of the model that contains the low values of the sets in the series. Default value is -1 (invalid mapping).

See also

low()

PySide6.QtCharts.QCandlestickModelMapper.setModel(model)
Parameters

modelPySide6.QtCore.QAbstractItemModel

See also

model()

PySide6.QtCharts.QCandlestickModelMapper.setOpen(open)
Parameters

open – int

Sets the row/column of the model that contains the open values of the sets in the series. Default value is -1 (invalid mapping).

See also

open()

PySide6.QtCharts.QCandlestickModelMapper.setSeries(series)
Parameters

seriesPySide6.QtCharts.QCandlestickSeries

See also

series()

PySide6.QtCharts.QCandlestickModelMapper.setTimestamp(timestamp)
Parameters

timestamp – int

Sets the row/column of the model that contains the timestamp values of the sets in the series. Default value is -1 (invalid mapping).

See also

timestamp()

PySide6.QtCharts.QCandlestickModelMapper.timestamp()
Return type

int

Returns the row/column of the model that contains the timestamp values of the sets in the series. Default value is -1 (invalid mapping).

See also

setTimestamp()