QHCandlestickModelMapper 类

QHCandlestickModelMapper 类是用于烛台系列的水平模型映射器。 更多...

头: #include <QHCandlestickModelMapper>
实例化: HCandlestickModelMapper
继承: QCandlestickModelMapper

特性

公共函数

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 ()

成员函数文档编制

[explicit] 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 .

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

重实现: QCandlestickModelMapper::orientation() const .

返回 Qt::Horizontal 。这意味着从行读取项值。

[signal] void QHCandlestickModelMapper:: timestampColumnChanged ()

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

注意: 通知程序信号对于特性 timestampColumn .

另请参阅 timestampColumn .