QVCandlestickModelMapper#
The QVCandlestickModelMapper
class is a vertical model mapper for a candlestick series. More…
Synopsis#
Properties#
closeRow
- Row of the model that contains the close values of the candlestick items in the seriesfirstSetColumn
- Column of the model that is used as the data source for the first itemhighRow
- Row of the model that contains the high values of the candlestick items in the serieslastSetColumn
- Column of the model that is used as the data source for the last itemlowRow
- Row of the model that contains the low values of the candlestick items in the seriesopenRow
- Row of the model that contains the open values of the candlestick items in the seriestimestampRow
- Row of the model that contains the timestamp values of the candlestick items in the series
Functions#
def
closeRow
()def
firstSetColumn
()def
highRow
()def
lastSetColumn
()def
lowRow
()def
openRow
()def
setCloseRow
(closeRow)def
setFirstSetColumn
(firstSetColumn)def
setHighRow
(highRow)def
setLastSetColumn
(lastSetColumn)def
setLowRow
(lowRow)def
setOpenRow
(openRow)def
setTimestampRow
(timestampRow)def
timestampRow
()
Signals#
def
closeRowChanged
()def
firstSetColumnChanged
()def
highRowChanged
()def
lastSetColumnChanged
()def
lowRowChanged
()def
openRowChanged
()def
timestampRowChanged
()
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 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:
parent –
PySide6.QtCore.QObject
Constructs a vertical 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.QVCandlestickModelMapper.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).
- Access functions:
closeRow
()setCloseRow
(closeRow)Signal
closeRowChanged
()
- property PᅟySide6.QtCharts.QVCandlestickModelMapper.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).
- Access functions:
setFirstSetColumn
(firstSetColumn)Signal
firstSetColumnChanged
()
- property PᅟySide6.QtCharts.QVCandlestickModelMapper.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).
- Access functions:
highRow
()setHighRow
(highRow)Signal
highRowChanged
()
- property PᅟySide6.QtCharts.QVCandlestickModelMapper.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).
- Access functions:
setLastSetColumn
(lastSetColumn)Signal
lastSetColumnChanged
()
- property PᅟySide6.QtCharts.QVCandlestickModelMapper.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).
- Access functions:
lowRow
()setLowRow
(lowRow)Signal
lowRowChanged
()
- property PᅟySide6.QtCharts.QVCandlestickModelMapper.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).
- Access functions:
openRow
()setOpenRow
(openRow)Signal
openRowChanged
()
- property PᅟySide6.QtCharts.QVCandlestickModelMapper.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).
- Access functions:
timestampRow
()setTimestampRow
(timestampRow)Signal
timestampRowChanged
()
- PySide6.QtCharts.QVCandlestickModelMapper.closeRow()#
- Return type:
int
See also
Getter of property closeRow
.
- PySide6.QtCharts.QVCandlestickModelMapper.closeRowChanged()#
Emitted when the row of the model that contains close values is changed.
See also
Notification signal of property closeRow
.
- PySide6.QtCharts.QVCandlestickModelMapper.firstSetColumn()#
- Return type:
int
See also
Getter of property firstSetColumn
.
- PySide6.QtCharts.QVCandlestickModelMapper.firstSetColumnChanged()#
Emitted when the column of the model that contains the data of the first item is changed.
See also
Notification signal of property firstSetColumn
.
- PySide6.QtCharts.QVCandlestickModelMapper.highRow()#
- Return type:
int
See also
Getter of property highRow
.
- PySide6.QtCharts.QVCandlestickModelMapper.highRowChanged()#
Emitted when the row of the model that contains high values is changed.
See also
Notification signal of property highRow
.
- PySide6.QtCharts.QVCandlestickModelMapper.lastSetColumn()#
- Return type:
int
See also
Getter of property lastSetColumn
.
- PySide6.QtCharts.QVCandlestickModelMapper.lastSetColumnChanged()#
Emitted when the column of the model that contains the data of the last item is changed.
See also
Notification signal of property lastSetColumn
.
- PySide6.QtCharts.QVCandlestickModelMapper.lowRow()#
- Return type:
int
See also
Getter of property lowRow
.
- PySide6.QtCharts.QVCandlestickModelMapper.lowRowChanged()#
Emitted when the row of the model that contains low values is changed.
See also
Notification signal of property lowRow
.
- PySide6.QtCharts.QVCandlestickModelMapper.openRow()#
- Return type:
int
See also
Getter of property openRow
.
- PySide6.QtCharts.QVCandlestickModelMapper.openRowChanged()#
Emitted when the row of the model that contains open values is changed.
See also
Notification signal of property openRow
.
- PySide6.QtCharts.QVCandlestickModelMapper.setCloseRow(closeRow)#
- Parameters:
closeRow – int
See also
Setter of property closeRow
.
- PySide6.QtCharts.QVCandlestickModelMapper.setFirstSetColumn(firstSetColumn)#
- Parameters:
firstSetColumn – int
See also
Setter of property firstSetColumn
.
- PySide6.QtCharts.QVCandlestickModelMapper.setHighRow(highRow)#
- Parameters:
highRow – int
See also
Setter of property highRow
.
- PySide6.QtCharts.QVCandlestickModelMapper.setLastSetColumn(lastSetColumn)#
- Parameters:
lastSetColumn – int
See also
Setter of property lastSetColumn
.
- PySide6.QtCharts.QVCandlestickModelMapper.setLowRow(lowRow)#
- Parameters:
lowRow – int
See also
Setter of property lowRow
.
- PySide6.QtCharts.QVCandlestickModelMapper.setOpenRow(openRow)#
- Parameters:
openRow – int
See also
Setter of property openRow
.
- PySide6.QtCharts.QVCandlestickModelMapper.setTimestampRow(timestampRow)#
- Parameters:
timestampRow – int
See also
Setter of property timestampRow
.
- PySide6.QtCharts.QVCandlestickModelMapper.timestampRow()#
- Return type:
int
See also
Getter of property timestampRow
.
- PySide6.QtCharts.QVCandlestickModelMapper.timestampRowChanged()#
Emitted when the row of the model that contains timestamp values is changed.
See also
Notification signal of property timestampRow
.