QHCandlestickModelMapper#
The QHCandlestickModelMapper
class is a horizontal model mapper for a candlestick series. More…
Synopsis#
Properties#
closeColumn
- Column of the model that contains the close values of the candlestick items in the seriesfirstSetRow
- Row of the model that is used as the data source for the first itemhighColumn
- Column of the model that contains the high values of the candlestick items in the serieslastSetRow
- Row of the model that is used as the data source for the last itemlowColumn
- Column of the model that contains the low values of the candlestick items in the seriesopenColumn
- Column of the model that contains the open values of the candlestick items in the seriestimestampColumn
- Column of the model that contains the timestamp values of the candlestick items in the series
Functions#
def
closeColumn
()def
firstSetRow
()def
highColumn
()def
lastSetRow
()def
lowColumn
()def
openColumn
()def
setCloseColumn
(closeColumn)def
setFirstSetRow
(firstSetRow)def
setHighColumn
(highColumn)def
setLastSetRow
(lastSetRow)def
setLowColumn
(lowColumn)def
setOpenColumn
(openColumn)def
setTimestampColumn
(timestampColumn)def
timestampColumn
()
Signals#
def
closeColumnChanged
()def
firstSetRowChanged
()def
highColumnChanged
()def
lastSetRowChanged
()def
lowColumnChanged
()def
openColumnChanged
()def
timestampColumnChanged
()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
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:
parent –
PySide6.QtCore.QObject
Constructs a horizontal model mapper object which is a child of parent
.
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.QtCharts.QHCandlestickModelMapper.closeColumn: int#
This property holds The column of the model that contains the close values of the candlestick items in the series..
The default value is -1 (invalid mapping).
- Access functions:
closeColumn
()setCloseColumn
(closeColumn)Signal
closeColumnChanged
()
- property PᅟySide6.QtCharts.QHCandlestickModelMapper.firstSetRow: int#
This property holds The row of the model that is used as the data source for the first item..
The default value is -1 (invalid mapping).
- Access functions:
firstSetRow
()setFirstSetRow
(firstSetRow)Signal
firstSetRowChanged
()
- property PᅟySide6.QtCharts.QHCandlestickModelMapper.highColumn: int#
This property holds The column of the model that contains the high values of the candlestick items in the series..
The default value is -1 (invalid mapping).
- Access functions:
highColumn
()setHighColumn
(highColumn)Signal
highColumnChanged
()
- property PᅟySide6.QtCharts.QHCandlestickModelMapper.lastSetRow: int#
This property holds The row of the model that is used as the data source for the last item..
The default value is -1 (invalid mapping).
- Access functions:
lastSetRow
()setLastSetRow
(lastSetRow)Signal
lastSetRowChanged
()
- property PᅟySide6.QtCharts.QHCandlestickModelMapper.lowColumn: int#
This property holds The column of the model that contains the low values of the candlestick items in the series..
The default value is -1 (invalid mapping).
- Access functions:
lowColumn
()setLowColumn
(lowColumn)Signal
lowColumnChanged
()
- property PᅟySide6.QtCharts.QHCandlestickModelMapper.openColumn: int#
This property holds The column of the model that contains the open values of the candlestick items in the series..
The default value is -1 (invalid mapping).
- Access functions:
openColumn
()setOpenColumn
(openColumn)Signal
openColumnChanged
()
- property PᅟySide6.QtCharts.QHCandlestickModelMapper.timestampColumn: int#
This property holds The column of the model that contains the timestamp values of the candlestick items in the series..
The default value is -1 (invalid mapping).
- Access functions:
setTimestampColumn
(timestampColumn)Signal
timestampColumnChanged
()
- PySide6.QtCharts.QHCandlestickModelMapper.closeColumn()#
- Return type:
int
See also
Getter of property closeColumn
.
- PySide6.QtCharts.QHCandlestickModelMapper.closeColumnChanged()#
Emitted when the column of the model that contains close values is changed.
See also
Notification signal of property closeColumn
.
- PySide6.QtCharts.QHCandlestickModelMapper.firstSetRow()#
- Return type:
int
See also
Getter of property firstSetRow
.
- PySide6.QtCharts.QHCandlestickModelMapper.firstSetRowChanged()#
Emitted when the row of the model that contains the data of the first item is changed.
See also
Notification signal of property firstSetRow
.
- PySide6.QtCharts.QHCandlestickModelMapper.highColumn()#
- Return type:
int
See also
Getter of property highColumn
.
- PySide6.QtCharts.QHCandlestickModelMapper.highColumnChanged()#
Emitted when the column of the model that contains high values is changed.
See also
Notification signal of property highColumn
.
- PySide6.QtCharts.QHCandlestickModelMapper.lastSetRow()#
- Return type:
int
See also
Getter of property lastSetRow
.
- PySide6.QtCharts.QHCandlestickModelMapper.lastSetRowChanged()#
Emitted when the row of the model that contains the data of the last item is changed.
See also
Notification signal of property lastSetRow
.
- PySide6.QtCharts.QHCandlestickModelMapper.lowColumn()#
- Return type:
int
See also
Getter of property lowColumn
.
- PySide6.QtCharts.QHCandlestickModelMapper.lowColumnChanged()#
Emitted when the column of the model that contains low values is changed.
See also
Notification signal of property lowColumn
.
- PySide6.QtCharts.QHCandlestickModelMapper.openColumn()#
- Return type:
int
See also
Getter of property openColumn
.
- PySide6.QtCharts.QHCandlestickModelMapper.openColumnChanged()#
Emitted when the column of the model that contains open values is changed.
See also
Notification signal of property openColumn
.
- PySide6.QtCharts.QHCandlestickModelMapper.setCloseColumn(closeColumn)#
- Parameters:
closeColumn – int
See also
Setter of property closeColumn
.
- PySide6.QtCharts.QHCandlestickModelMapper.setFirstSetRow(firstSetRow)#
- Parameters:
firstSetRow – int
See also
Setter of property firstSetRow
.
- PySide6.QtCharts.QHCandlestickModelMapper.setHighColumn(highColumn)#
- Parameters:
highColumn – int
See also
Setter of property highColumn
.
- PySide6.QtCharts.QHCandlestickModelMapper.setLastSetRow(lastSetRow)#
- Parameters:
lastSetRow – int
See also
Setter of property lastSetRow
.
- PySide6.QtCharts.QHCandlestickModelMapper.setLowColumn(lowColumn)#
- Parameters:
lowColumn – int
See also
Setter of property lowColumn
.
- PySide6.QtCharts.QHCandlestickModelMapper.setOpenColumn(openColumn)#
- Parameters:
openColumn – int
See also
Setter of property openColumn
.
- PySide6.QtCharts.QHCandlestickModelMapper.setTimestampColumn(timestampColumn)#
- Parameters:
timestampColumn – int
See also
Setter of property timestampColumn
.
- PySide6.QtCharts.QHCandlestickModelMapper.timestampColumn()#
- Return type:
int
See also
Getter of property timestampColumn
.
- PySide6.QtCharts.QHCandlestickModelMapper.timestampColumnChanged()#
Emitted when the column of the model that contains timestamp values is changed
See also
Notification signal of property timestampColumn
.