The QVCandlestickModelMapper class is a vertical model mapper for a candlestick series. 更多...
| 頭: | #include <QVCandlestickModelMapper> |
| Since: | Qt 5.8 |
| 實例化: | VCandlestickModelMapper |
| 繼承: | QCandlestickModelMapper |
|
|
| QVCandlestickModelMapper (QObject * parent = nullptr) | |
| int | closeRow () const |
| int | firstSetColumn () const |
| int | highRow () const |
| int | lastSetColumn () const |
| int | lowRow () const |
| int | openRow () const |
| void | setCloseRow (int closeRow ) |
| void | setFirstSetColumn (int firstSetColumn ) |
| void | setHighRow (int highRow ) |
| void | setLastSetColumn (int lastSetColumn ) |
| void | setLowRow (int lowRow ) |
| void | setOpenRow (int openRow ) |
| void | setTimestampRow (int timestampRow ) |
| int | timestampRow () const |
| virtual Qt::Orientation | orientation () const |
| void | closeRowChanged () |
| void | firstSetColumnChanged () |
| void | highRowChanged () |
| void | lastSetColumnChanged () |
| void | lowRowChanged () |
| void | openRowChanged () |
| void | timestampRowChanged () |
The QVCandlestickModelMapper class is a vertical model mapper for a candlestick series.
模型映射器允許使用的數據模型派生自 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.
另請參閱 QCandlestickSeries , QCandlestickSet ,和 QHCandlestickModelMapper .
This property holds the row of the model that contains the close values of the candlestick items in the series.
默認值為 -1 (無效映射)。
訪問函數:
| int | closeRow () const |
| void | setCloseRow (int closeRow ) |
通知程序信號:
| void | closeRowChanged () |
This property holds the column of the model that is used as the data source for the first item.
默認值為 -1 (無效映射)。
訪問函數:
| int | firstSetColumn () const |
| void | setFirstSetColumn (int firstSetColumn ) |
通知程序信號:
| void | firstSetColumnChanged () |
This property holds the row of the model that contains the high values of the candlestick items in the series.
默認值為 -1 (無效映射)。
訪問函數:
| int | highRow () const |
| void | setHighRow (int highRow ) |
通知程序信號:
| void | highRowChanged () |
This property holds the column of the model that is used as the data source for the last item.
默認值為 -1 (無效映射)。
訪問函數:
| int | lastSetColumn () const |
| void | setLastSetColumn (int lastSetColumn ) |
通知程序信號:
| void | lastSetColumnChanged () |
This property holds the row of the model that contains the low values of the candlestick items in the series.
默認值為 -1 (無效映射)。
訪問函數:
| int | lowRow () const |
| void | setLowRow (int lowRow ) |
通知程序信號:
| void | lowRowChanged () |
This property holds the row of the model that contains the open values of the candlestick items in the series.
默認值為 -1 (無效映射)。
訪問函數:
| int | openRow () const |
| void | setOpenRow (int openRow ) |
通知程序信號:
| void | openRowChanged () |
This property holds the row of the model that contains the timestamp values of the candlestick items in the series.
默認值為 -1 (無效映射)。
訪問函數:
| int | timestampRow () const |
| void | setTimestampRow (int timestampRow ) |
通知程序信號:
| void | timestampRowChanged () |
Constructs a vertical model mapper object which is a child of parent .
[signal]
void
QVCandlestickModelMapper::
closeRowChanged
()
Emitted when the row of the model that contains close values is changed.
注意: 通知程序信號對於特性 closeRow .
另請參閱 closeRow .
[signal]
void
QVCandlestickModelMapper::
firstSetColumnChanged
()
Emitted when the column of the model that contains the data of the first item is changed.
注意: 通知程序信號對於特性 firstSetColumn .
另請參閱 firstSetColumn .
[signal]
void
QVCandlestickModelMapper::
highRowChanged
()
Emitted when the row of the model that contains high values is changed.
注意: 通知程序信號對於特性 highRow .
另請參閱 highRow .
[signal]
void
QVCandlestickModelMapper::
lastSetColumnChanged
()
Emitted when the column of the model that contains the data of the last item is changed.
注意: 通知程序信號對於特性 lastSetColumn .
另請參閱 lastSetColumn .
[signal]
void
QVCandlestickModelMapper::
lowRowChanged
()
Emitted when the row of the model that contains low values is changed.
注意: 通知程序信號對於特性 lowRow .
另請參閱 lowRow .
[signal]
void
QVCandlestickModelMapper::
openRowChanged
()
Emitted when the row of the model that contains open values is changed.
注意: 通知程序信號對於特性 openRow .
另請參閱 openRow .
[虛擬]
Qt::Orientation
QVCandlestickModelMapper::
orientation
() const
重實現自 QCandlestickModelMapper::orientation ().
返迴 Qt::Vertical . This means that values of the item are read from columns.
[signal]
void
QVCandlestickModelMapper::
timestampRowChanged
()
Emitted when the row of the model that contains timestamp values is changed.
注意: 通知程序信號對於特性 timestampRow .
另請參閱 timestampRow .