このページでは

QHBoxPlotModelMapper Class

QHBoxPlotModelMapper クラスは、箱ひげ図の系列用の水平モデルマッパーです。詳細...

Header: #include <QHBoxPlotModelMapper>
In QML: HBoxPlotModelMapper
Inherits: QObject
Status: Deprecated

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

プロパティ

パブリック関数

QHBoxPlotModelMapper(QObject *parent = nullptr)
int columnCount() const
int firstBoxSetRow() const
int firstColumn() const
int lastBoxSetRow() const
QAbstractItemModel *model() const
QBoxPlotSeries *series() const
void setColumnCount(int rowCount)
void setFirstBoxSetRow(int firstBoxSetRow)
void setFirstColumn(int firstColumn)
void setLastBoxSetRow(int lastBoxSetRow)
void setModel(QAbstractItemModel *model)
void setSeries(QBoxPlotSeries *series)

シグナル

詳細な説明

モデルマッパーを使用すると、QAbstractItemModel クラスから派生したデータモデルを、チャートのデータソースとして使用できます。 水平モデルマッパーは、データモデルとQBoxPlotSeries オブジェクト間の接続を作成するために使用され、データモデルの各行がボックス・アンド・ウィスカー項目の1つを定義し、各列がボックス・アンド・ウィスカー項目の範囲および3つの中央値にマッピングされるようにします。

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

モデルマッパーは、箱ひげ図シリーズ内のすべての箱ひげ図項目が等しいサイズになるようにします。したがって、ある箱ひげ図項目に値を追加または削除すると、箱ひげ図シリーズ内のすべての箱ひげ図項目に同じ変更が反映されます。

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

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

columnCount : int

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

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

アクセス関数:

int columnCount() const
void setColumnCount(int rowCount)

通知信号:

firstBoxSetRow : int

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

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

アクセス関数:

int firstBoxSetRow() const
void setFirstBoxSetRow(int firstBoxSetRow)

通知信号:

firstColumn : int

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

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

アクセス関数:

int firstColumn() const
void setFirstColumn(int firstColumn)

通知シグナル:

lastBoxSetRow : int

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

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

アクセス関数:

int lastBoxSetRow() const
void setLastBoxSetRow(int lastBoxSetRow)

通知信号:

model : QAbstractItemModel*

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

アクセス関数:

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

通知シグナル:

void modelReplaced()

series : QBoxPlotSeries*

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

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

アクセス関数:

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

通知シグナル:

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

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

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

[signal] void QHBoxPlotModelMapper::columnCountChanged()

このシグナルは、列数が変更されたときに発生します。

注: プロパティ「columnCount 」の通知 シグナルです。

[signal] void QHBoxPlotModelMapper::firstBoxSetRowChanged()

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

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

[signal] void QHBoxPlotModelMapper::firstColumnChanged()

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

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

[signal] void QHBoxPlotModelMapper::lastBoxSetRowChanged()

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

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

[signal] void QHBoxPlotModelMapper::modelReplaced()

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

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

[signal] void QHBoxPlotModelMapper::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.