IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QHCandlestickModelMapper Class

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

This class was introduced in Qt 5.8.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QHCandlestickModelMapper Class

  • Header: QHCandlestickModelMapper

  • Since: Qt 5.8

  • Inherited By:

  • Instantiated By: qml-qtcharts-hcandlestickmodelmapper.xml

  • Inherits: QCandlestickModelMapper

Detailed Description

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.

See Also

Property Documentation

 

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

Access functions:

  • 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).

Access functions:

  • 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).

Access functions:

  • 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).

Access functions:

  • 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).

Access functions:

  • 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).

Access functions:

  • 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).

Access functions:

  • int timestampColumn() const

  • void setTimestampColumn(int timestampColumn)

Notifier signal:

Member Function Documentation

 

[explicit] QHCandlestickModelMapper::QHCandlestickModelMapper(QObject *parent = nullptr)

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

void QHCandlestickModelMapper::closeColumnChanged()

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

Notifier signal for property closeColumn.

See Also

See also closeColumn

void QHCandlestickModelMapper::firstSetRowChanged()

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

Notifier signal for property firstSetRow.

See Also

See also firstSetRow

void QHCandlestickModelMapper::highColumnChanged()

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

Notifier signal for property highColumn.

See Also

See also highColumn

void QHCandlestickModelMapper::lastSetRowChanged()

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

Notifier signal for property lastSetRow.

See Also

See also lastSetRow

void QHCandlestickModelMapper::lowColumnChanged()

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

Notifier signal for property lowColumn.

See Also

See also lowColumn

void QHCandlestickModelMapper::openColumnChanged()

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

Notifier signal for property openColumn.

See Also

See also openColumn

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

Reimplements: QCandlestickModelMapper::orientation() const.

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

void QHCandlestickModelMapper::timestampColumnChanged()

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

Notifier signal for property timestampColumn.

See Also

See also timestampColumn

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+