QHBoxPlotModelMapper Class
QHBoxPlotModelMapperクラスはボックスプロット系列の水平モデルマッパーです。詳細...
Header: | #include <QHBoxPlotModelMapper> |
In QML: | HBoxPlotModelMapper |
Inherits: | QObject |
プロパティ
|
|
パブリック機能
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) |
シグナル
void | columnCountChanged() |
void | firstBoxSetRowChanged() |
void | firstColumnChanged() |
void | lastBoxSetRowChanged() |
void | modelReplaced() |
void | seriesReplaced() |
詳細説明
モデルマッパーは、QAbstractItemModel クラスから派生したデータモデルをチャートのデータソースとして使用できるようにします。水平モデルマッパーは、データモデルとQBoxPlotSeries オブジェクト間の接続を作成するために使用され、データモデルの各行が箱ひげ項目を定義し、各列が箱ひげ項目の範囲と3つの中央値にマッピングされます。
モデルプロパティと系列プロパティの両方を使用してデータを操作することができます。モデルマッパーは系列とデータモデルの同期を保ちます。
モデルマッパーは、箱ひげ図系列のすべての箱ひげ項目が等しいサイズを持つことを保証します。したがって、箱ひげ項目に値を追加または削除すると、箱ひげ図シリーズのすべての箱ひげ項目に同じ変更が行われます。
QVBoxPlotModelMapperも参照してください 。
プロパティのドキュメント
columnCount : int
このプロパティは、ボックスプロット系列のデータとしてマッピングされるモデルの列数を保持する。
最小値およびデフォルト値は-1(モデルの列数に制限された数)。
アクセス関数:
int | columnCount() const |
void | setColumnCount(int rowCount) |
通知シグナル:
void | columnCountChanged() |
firstBoxSetRow : int
このプロパティは、最初の箱ひげ項目のデータソースとして使用されるモデルの行を保持する。
デフォルト値は -1(無効なマッピング)です。
アクセス関数:
int | firstBoxSetRow() const |
void | setFirstBoxSetRow(int firstBoxSetRow) |
通知シグナル:
void | firstBoxSetRowChanged() |
firstColumn : int
このプロパティは、箱ひげ図系列の箱ひげ項目の最初の値を含むモデルの列を保持する。
最小値およびデフォルト値は0である。
アクセス関数:
int | firstColumn() const |
void | setFirstColumn(int firstColumn) |
通知シグナル:
void | firstColumnChanged() |
lastBoxSetRow : int
このプロパティは、最後の箱ひげ項目のデータソースとして使用されるモデルの行を保持する。
デフォルト値は -1(無効なマッピング)です。
アクセス関数:
int | lastBoxSetRow() const |
void | setLastBoxSetRow(int lastBoxSetRow) |
通知シグナル:
void | lastBoxSetRowChanged() |
model : QAbstractItemModel*
このプロパティはマッパーが使用するモデルを保持します。
アクセス関数
QAbstractItemModel * | model() const |
void | setModel(QAbstractItemModel *model) |
通知シグナル
void | modelReplaced() |
series : QBoxPlotSeries*
このプロパティはマッパーが使用するボックスプロットの系列を保持する。
このシリーズがマッパーに設定されると、シリーズ内のデータはすべて破棄されます。新しい系列が指定されると、古い系列は切り離されます(ただしデータは保持されます)。
アクセス関数
QBoxPlotSeries * | series() const |
void | setSeries(QBoxPlotSeries *series) |
通知シグナル:
void | seriesReplaced() |
メンバ関数ドキュメント
[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 プロパティ用のノーティファイアシグナルです。
© 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.