このページでは

QVBoxPlotModelMapper Class

QVBoxPlotModelMapper は、箱ひげ図の系列用の垂直モデルマッパーです。詳細...

Header: #include <QVBoxPlotModelMapper>
In QML: VBoxPlotModelMapper
Inherits: QObject
Status: Deprecated

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

プロパティ

パブリック関数

QVBoxPlotModelMapper(QObject *parent = nullptr)
int firstBoxSetColumn() const
int firstRow() const
int lastBoxSetColumn() const
QAbstractItemModel *model() const
int rowCount() const
QBoxPlotSeries *series() const
void setFirstBoxSetColumn(int firstBoxSetColumn)
void setFirstRow(int firstRow)
void setLastBoxSetColumn(int lastBoxSetColumn)
void setModel(QAbstractItemModel *model)
void setRowCount(int rowCount)
void setSeries(QBoxPlotSeries *series)

シグナル

詳細な説明

モデルマッパーを使用すると、QAbstractItemModel クラスから派生したデータモデルを、チャートのデータソースとして使用できます。 垂直モデルマッパーは、データモデルとQBoxPlotSeries オブジェクト間の接続を作成するために使用されます。これにより、データモデルの各列が箱ひげ図の項目を定義し、各行が箱ひげ図の項目の範囲と3つの中央値にマッピングされます。

データの操作には、モデルプロパティとシリーズプロパティの両方を使用できます。モデルマッパーは、シリーズとデータモデルを常に同期させた状態に保ちます。

モデルマッパーは、ボックスプロットシリーズ内のすべての棒グラフ型ボックス・アンド・ウィスカー項目が等しいサイズになるようにします。したがって、ボックス・アンド・ウィスカー項目から値を追加または削除すると、ボックスプロットシリーズ内のすべてのボックス・アンド・ウィスカー項目に同じ変更が反映されます。

「QHBoxPlotModelMapper」も参照してください 。

プロパティのドキュメント

firstBoxSetColumn : int

このプロパティには、最初の箱ひげ図項目のデータソースとして使用されるモデルの列が格納されます。

デフォルト値は -1(無効なマッピング)です。

アクセス関数:

int firstBoxSetColumn() const
void setFirstBoxSetColumn(int firstBoxSetColumn)

通知信号:

firstRow : int

このプロパティは、箱ひげ図シリーズにおける各項目の最初の値を含むモデルの行を保持します。

最小値およびデフォルト値は 0 です。

アクセス関数:

int firstRow() const
void setFirstRow(int firstRow)

通知信号:

lastBoxSetColumn : int

このプロパティには、最後の箱ひげ図項目のデータソースとして使用されるモデルの列が格納されます。

デフォルト値は -1(無効なマッピング)です。

アクセス関数:

int lastBoxSetColumn() const
void setLastBoxSetColumn(int lastBoxSetColumn)

通知信号:

model : QAbstractItemModel*

このプロパティには、マッパーによって使用されるモデルが格納されます。

アクセス関数:

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

通知シグナル:

void modelReplaced()

rowCount : int

このプロパティには、ボックスプロット・シリーズのデータとしてマッピングされるモデルの行数が格納されます。

最小値およびデフォルト値は -1 です(値はモデルの列数に制限されます)。

アクセス関数:

int rowCount() const
void setRowCount(int rowCount)

通知信号:

series : QBoxPlotSeries*

このプロパティには、マッパーで使用される箱ひげ図のシリーズが格納されます。

このプロパティをマッパーに設定すると、シリーズ内のすべてのデータが破棄されます。新しいシリーズが指定されると、古いシリーズは切り離されます(ただし、データは保持されます)。

アクセス関数:

QBoxPlotSeries *series() const
void setSeries(QBoxPlotSeries *series)

通知シグナル:

メンバ関数のドキュメント

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

parent の子となるマッパーオブジェクトを作成します。

[signal] void QVBoxPlotModelMapper::firstBoxSetColumnChanged()

このシグナルは、最初の箱ひげ図の項目列が変更されたときに発火します。

注: プロパティ `firstBoxSetColumn`の通知 信号です。

[signal] void QVBoxPlotModelMapper::firstRowChanged()

このシグナルは、最初の行が変更されたときに発火します。

注: プロパティ `firstRow`の通知 シグナルです。

[signal] void QVBoxPlotModelMapper::lastBoxSetColumnChanged()

このシグナルは、最後の箱ひげ図の項目列が変更されたときに発火します。

注: プロパティ `lastBoxSetColumn` に対する通知 シグナルです。

[signal] void QVBoxPlotModelMapper::modelReplaced()

このシグナルは、マッパーが接続されているモデルが変更されたときに発火します。

注: プロパティ `model` に対する通知 シグナルです。

[signal] void QVBoxPlotModelMapper::rowCountChanged()

このシグナルは、行数が変化したときに発信されます。

注: プロパティ `rowCount` に対する通知 シグナルです。

[signal] void QVBoxPlotModelMapper::seriesReplaced()

このシグナルは、マッパーが接続されているシリーズが変更されたときに発せられます。

注: プロパティ `series` に対する通知 シグナルです。

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