QCandlestickModelMapper Class

ローソク足シリーズの抽象モデルマッパークラスです。詳細...

Header: #include <QCandlestickModelMapper>
Inherits: QObject
Inherited By:

QHCandlestickModelMapper and QVCandlestickModelMapper

プロパティ

  • model : QAbstractItemModel*
  • series : QCandlestickSeries*

パブリック機能

QCandlestickModelMapper(QObject *parent = nullptr)
QAbstractItemModel *model() const
virtual Qt::Orientation orientation() const = 0
QCandlestickSeries *series() const
void setModel(QAbstractItemModel *model)
void setSeries(QCandlestickSeries *series)

シグナル

保護された関数

int close() const
int firstSetSection() const
int high() const
int lastSetSection() const
int low() const
int open() const
void setClose(int close)
void setFirstSetSection(int firstSetSection)
void setHigh(int high)
void setLastSetSection(int lastSetSection)
void setLow(int low)
void setOpen(int open)
void setTimestamp(int timestamp)
int timestamp() const

詳細説明

モデルマッパーは、QAbstractItemModel から派生したモデルをチャート系列のデータソースとして使用することを可能にし、QCandlestickSeries とモデルオブジェクトの間に接続を作ります。モデルマッパーはすべてのQCandlestickSets で等しいサイズを維持する。

注: 使用されるモデルは、行/列の追加や削除、セルのデータの変更をサポートしていなければならない。

プロパティ・ドキュメンテーション

model : QAbstractItemModel*

マッパーが使用するモデルを定義します。

アクセス関数

QAbstractItemModel *model() const
void setModel(QAbstractItemModel *model)

通知シグナル

void modelReplaced()

series : QCandlestickSeries*

マッパーが使用するQCandlestickSeries オブジェクトを定義します。

注意: シリーズがマッパーに設定されると、シリーズ内のデータはすべて破棄されます。新しいシリーズが指定されると、古いシリーズは切断される(データは保持される)。

アクセス関数

QCandlestickSeries *series() const
void setSeries(QCandlestickSeries *series)

通知シグナル:

メンバ関数ドキュメント

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

parent の子としてモデルマッパーオブジェクトを構築します。

[protected] int QCandlestickModelMapper::close() const

シリーズ内のセットの近い値を含むモデルの行/列を返します。デフォルト値は -1(無効なマッピング)。

setClose()も参照してください

[protected] int QCandlestickModelMapper::firstSetSection() const

最初のローソク足セットのデータソースとして使用されるモデルのセクションを返します。デフォルト値は -1 (無効なマッピング)。

setFirstSetSection()も参照

[protected] int QCandlestickModelMapper::high() const

系列内のセットの高い値を含むモデルの行/列を返します。デフォルト値は -1(無効なマッピング)。

setHigh()も参照

[protected] int QCandlestickModelMapper::lastSetSection() const

最後のローソク足セットのデータソースとして使用されているモデルのセクションを返します。デフォルト値は -1 (無効なマッピング)。

setLastSetSection()も参照

[protected] int QCandlestickModelMapper::low() const

シリーズ内のセットの低い値を含むモデルの行/列を返します。デフォルト値は -1(無効なマッピング)。

setLow()も参照

[signal] void QCandlestickModelMapper::modelReplaced()

マッパーが接続されているモデルが変更されたときに発行されます。

注: プロパティmodel に対するノーティファイアシグナルです。

modelも参照してください

[protected] int QCandlestickModelMapper::open() const

このシリーズのセットのオープン値を含むモデルの行/列を返します。デフォルト値は -1(無効なマッピング)。

setOpen()も参照してください

[pure virtual] Qt::Orientation QCandlestickModelMapper::orientation() const

QCandlestickModelMapper がモデルにアクセスするときに使用される方向を返します。これにより、セットの連続する値が行から読み込まれるのか (Qt::Horizontal) 、列から読み込まれるのか (Qt::Vertical) が決まります。

[signal] void QCandlestickModelMapper::seriesReplaced()

マッパーが接続されているシリーズが変更された時に発信される。

注: プロパティseries に対するノーティファイアシグナル。

seriesも参照

[protected] void QCandlestickModelMapper::setClose(int close)

シリーズ内のセットのclose 値を含むモデルの行/列を設定します。デフォルト値は -1(無効なマッピング)。

close()も参照してください

[protected] void QCandlestickModelMapper::setFirstSetSection(int firstSetSection)

最初のローソク足セットのデータソースとして使用されるモデルのセクションを設定します。パラメータfirstSetSection は、モデルのセクションを指定します。デフォルト値は -1 です。

firstSetSection()も参照

[protected] void QCandlestickModelMapper::setHigh(int high)

シリーズ内のセットのhigh 値を含むモデルの行/列を設定します。デフォルト値は -1(無効なマッピング)。

high()も参照してください

[protected] void QCandlestickModelMapper::setLastSetSection(int lastSetSection)

最後のローソク足セットのデータソースとして使用されるモデルのセクションを設定します。パラメータlastSetSection は、モデルのセクションを指定します。デフォルト値は -1 です。

lastSetSection()も参照

[protected] void QCandlestickModelMapper::setLow(int low)

シリーズ内のセットのlow 値を含むモデルの行/列を設定します。デフォルト値は -1(無効なマッピング)。

low()も参照してください

[protected] void QCandlestickModelMapper::setOpen(int open)

シリーズ内のセットのopen 値を含むモデルの行/列を設定します。デフォルト値は -1(無効なマッピング)。

open()も参照してください

[protected] void QCandlestickModelMapper::setTimestamp(int timestamp)

シリーズ内のセットのtimestamp 値を含むモデルの行/列を設定します。デフォルト値は -1(無効なマッピング)。

timestamp()も参照してください

[protected] int QCandlestickModelMapper::timestamp() const

シリーズ内のセットのタイムスタンプ値を含むモデルの行/列を返します。デフォルト値は -1(無効なマッピング)。

setTimestamp()も参照してください

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.