このページでは

QCandlestickModelMapper Class

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

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

QHCandlestickModelMapper and QVCandlestickModelMapper

Status: Deprecated

このクラスは非推奨です。新しいコードでの使用は強く推奨しません。

プロパティ

  • 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()も参照してください 。

© 2026 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.