QVBoxPlotModelMapper Class

QVBoxPlotModelMapper はボックスプロットシリーズの垂直モデルマッパーです。詳細...

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

プロパティ

パブリック機能

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 プロパティ用のノーティファイアシグナルです。

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