- class QCandlestickModelMapper#
Abstract model mapper class for candlestick series. More…
Inherited by:
QVCandlestickModelMapper
,QHCandlestickModelMapper
Synopsis#
Properties#
Methods#
def
__init__()
def
close()
def
high()
def
lastSetSection()
def
low()
def
model()
def
open()
def
series()
def
setClose()
def
setHigh()
def
setLow()
def
setModel()
def
setOpen()
def
setSeries()
def
setTimestamp()
def
timestamp()
Virtual methods#
def
orientation()
Signals#
def
modelReplaced()
def
seriesReplaced()
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 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 allQCandlestickSets
.Note
The model used must support adding and removing rows/columns and modifying the data of the cells.
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property modelᅟ: QAbstractItemModel#
This property Defines the model that is used by the mapper..
- Access functions:
Signal
modelReplaced()
- property seriesᅟ: QCandlestickSeries#
This property Defines the
QCandlestickSeries
object that is used by the mapper..Note
All data in the series is discarded when it is set to the mapper. When a new series is specified, the old series is disconnected (preserving its data).
- Access functions:
Signal
seriesReplaced()
Constructs a model mapper object as a child of
parent
.- 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
- 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).
See also
- 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
- 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).
See also
- 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
- model()#
- Return type:
See also
Getter of property
modelᅟ
.- modelReplaced()#
Emitted when the model, to which the mapper is connected, has changed.
See also
Notification signal of property
modelᅟ
.- 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
- abstract orientation()#
- Return type:
Returns the orientation that is used when
QCandlestickModelMapper
accesses the model. This determines whether the consecutive values of the set are read from rows (Qt::Horizontal) or from columns (Qt::Vertical).- series()#
- Return type:
See also
Getter of property
seriesᅟ
.- seriesReplaced()#
Emitted when the series to which mapper is connected to has changed.
See also
Notification signal of property
seriesᅟ
.- 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
- 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.See also
- 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
- 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
- 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
- setModel(model)#
- Parameters:
model –
QAbstractItemModel
See also
Setter of property
modelᅟ
.- 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
- setSeries(series)#
- Parameters:
series –
QCandlestickSeries
See also
Setter of property
seriesᅟ
.- 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()#
- 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