QHCandlestickModelMapper Class

The QHCandlestickModelMapper class is a horizontal model mapper for a candlestick series. 更多...

头文件: #include <QHCandlestickModelMapper>
开始支持版本: Qt 5.8
Instantiated By: 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

信号

其他继承的成员

详细描述

The QHCandlestickModelMapper class is a horizontal model mapper for a candlestick series.

Model mappers enable using a data model derived from the 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, and QVCandlestickModelMapper.

属性

closeColumn : int

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

The default value is -1 (invalid mapping).

访问函数:

int closeColumn() const
void setCloseColumn(int closeColumn)

Notifier signal:

firstSetRow : int

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

The default value is -1 (invalid mapping).

访问函数:

int firstSetRow() const
void setFirstSetRow(int firstSetRow)

Notifier signal:

highColumn : int

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

The default value is -1 (invalid mapping).

访问函数:

int highColumn() const
void setHighColumn(int highColumn)

Notifier signal:

lastSetRow : int

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

The default value is -1 (invalid mapping).

访问函数:

int lastSetRow() const
void setLastSetRow(int lastSetRow)

Notifier signal:

lowColumn : int

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

The default value is -1 (invalid mapping).

访问函数:

int lowColumn() const
void setLowColumn(int lowColumn)

Notifier signal:

openColumn : int

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

The default value is -1 (invalid mapping).

访问函数:

int openColumn() const
void setOpenColumn(int openColumn)

Notifier signal:

timestampColumn : int

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

The default value is -1 (invalid mapping).

访问函数:

int timestampColumn() const
void setTimestampColumn(int timestampColumn)

Notifier signal:

成员函数

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.

Note: Notifier signal for property closeColumn.

参见 closeColumn.

[signal] void QHCandlestickModelMapper::firstSetRowChanged()

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

Note: Notifier signal for property firstSetRow.

参见 firstSetRow.

[signal] void QHCandlestickModelMapper::highColumnChanged()

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

Note: Notifier signal for property highColumn.

参见 highColumn.

[signal] void QHCandlestickModelMapper::lastSetRowChanged()

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

Note: Notifier signal for property lastSetRow.

参见 lastSetRow.

[signal] void QHCandlestickModelMapper::lowColumnChanged()

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

Note: Notifier signal for property lowColumn.

参见 lowColumn.

[signal] void QHCandlestickModelMapper::openColumnChanged()

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

Note: Notifier signal for property openColumn.

参见 openColumn.

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

Reimplemented from QCandlestickModelMapper::orientation().

Returns Qt::Horizontal. This means that values of the item are read from rows.

[signal] void QHCandlestickModelMapper::timestampColumnChanged()

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

Note: Notifier signal for property timestampColumn.

参见 timestampColumn.