QHCandlestickModelMapper 類

QHCandlestickModelMapper 類是用於燭颱係列的水平模型映射器。 更多...

頭: #include <QHCandlestickModelMapper>
Since: Qt 5.8
實例化: HCandlestickModelMapper
繼承: QCandlestickModelMapper

該類在 Qt 5.8 引入。

特性

公共函數

QHCandlestickModelMapper (QObject * parent = nullptr)
int closeColumn () const
int firstSetRow () const
int highColumn () const
int lastSetRow () const
int lowColumn () const
int openColumn () const
void setCloseColumn (int closeColumn )
void setFirstSetRow (int firstSetRow )
void setHighColumn (int highColumn )
void setLastSetRow (int lastSetRow )
void setLowColumn (int lowColumn )
void setOpenColumn (int openColumn )
void setTimestampColumn (int timestampColumn )
int timestampColumn () const

重實現公共函數

virtual Qt::Orientation orientation () const override

信號

void closeColumnChanged ()
void firstSetRowChanged ()
void highColumnChanged ()
void lastSetRowChanged ()
void lowColumnChanged ()
void openColumnChanged ()
void timestampColumnChanged ()

詳細描述

模型映射器允許使用的數據模型派生自 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.

另請參閱 QCandlestickSeries , QCandlestickSet ,和 QVCandlestickModelMapper .

特性文檔編製

closeColumn : int

This property holds the column of the model that contains the close values of the candlestick items in the series.

默認值為 -1 (無效映射)。

訪問函數:

int closeColumn () const
void setCloseColumn (int closeColumn )

通知程序信號:

void closeColumnChanged ()

firstSetRow : int

This property holds the row of the model that is used as the data source for the first item.

默認值為 -1 (無效映射)。

訪問函數:

int firstSetRow () const
void setFirstSetRow (int firstSetRow )

通知程序信號:

void firstSetRowChanged ()

highColumn : int

This property holds the column of the model that contains the high values of the candlestick items in the series.

默認值為 -1 (無效映射)。

訪問函數:

int highColumn () const
void setHighColumn (int highColumn )

通知程序信號:

void highColumnChanged ()

lastSetRow : int

This property holds the row of the model that is used as the data source for the last item.

默認值為 -1 (無效映射)。

訪問函數:

int lastSetRow () const
void setLastSetRow (int lastSetRow )

通知程序信號:

void lastSetRowChanged ()

lowColumn : int

This property holds the column of the model that contains the low values of the candlestick items in the series.

默認值為 -1 (無效映射)。

訪問函數:

int lowColumn () const
void setLowColumn (int lowColumn )

通知程序信號:

void lowColumnChanged ()

openColumn : int

This property holds the column of the model that contains the open values of the candlestick items in the series.

默認值為 -1 (無效映射)。

訪問函數:

int openColumn () const
void setOpenColumn (int openColumn )

通知程序信號:

void openColumnChanged ()

timestampColumn : int

This property holds the column of the model that contains the timestamp values of the candlestick items in the series.

默認值為 -1 (無效映射)。

訪問函數:

int timestampColumn () const
void setTimestampColumn (int timestampColumn )

通知程序信號:

void timestampColumnChanged ()

成員函數文檔編製

QHCandlestickModelMapper:: QHCandlestickModelMapper ( QObject * parent = nullptr)

Constructs a horizontal model mapper object which is a child of parent .

[signal] void QHCandlestickModelMapper:: closeColumnChanged ()

Emitted when the column of the model that contains close values is changed.

注意: 通知程序信號對於特性 closeColumn .

另請參閱 closeColumn .

[signal] void QHCandlestickModelMapper:: firstSetRowChanged ()

Emitted when the row of the model that contains the data of the first item is changed.

注意: 通知程序信號對於特性 firstSetRow .

另請參閱 firstSetRow .

[signal] void QHCandlestickModelMapper:: highColumnChanged ()

Emitted when the column of the model that contains high values is changed.

注意: 通知程序信號對於特性 highColumn .

另請參閱 highColumn .

[signal] void QHCandlestickModelMapper:: lastSetRowChanged ()

Emitted when the row of the model that contains the data of the last item is changed.

注意: 通知程序信號對於特性 lastSetRow .

另請參閱 lastSetRow .

[signal] void QHCandlestickModelMapper:: lowColumnChanged ()

Emitted when the column of the model that contains low values is changed.

注意: 通知程序信號對於特性 lowColumn .

另請參閱 lowColumn .

[signal] void QHCandlestickModelMapper:: openColumnChanged ()

Emitted when the column of the model that contains open values is changed.

注意: 通知程序信號對於特性 openColumn .

另請參閱 openColumn .

[signal] void QHCandlestickModelMapper:: timestampColumnChanged ()

Emitted when the column of the model that contains timestamp values is changed

注意: 通知程序信號對於特性 timestampColumn .

另請參閱 timestampColumn .

[override virtual] Qt::Orientation QHCandlestickModelMapper:: orientation () const

重實現: QCandlestickModelMapper::orientation () const.

返迴 Qt::Horizontal 。這意味著從行讀取項值。