HBoxPlotModelMapper QML Type
ボックスプロットシリーズの水平モデルマッパー。詳細...
Import Statement: | import QtCharts 2.8 |
In C++: | QHBoxPlotModelMapper |
プロパティ
- columnCount : int
- firstBoxSetRow : int
- firstColumn : int
- lastBoxSetRow : int
- model : SomeModel
- series : AbstractBarSeries
詳細説明
HBoxPlotModelMapper 型は、QAbstractItemModel クラスから派生したデータモデルをチャートのデータソースとして使用できるようにします。水平モデルマッパーは、データモデルとBoxPlotSeries 型の間の接続を作成するために使用され、データモデルの各行が箱ひげ項目を定義し、各列が箱ひげ項目の範囲と3つの中央値にマッピングされます。
モデルプロパティと系列プロパティの両方を使用してデータを操作することができます。モデルマッパーは系列とデータモデルの同期を保ちます。
モデルマッパーは、箱ひげ図系列のすべての箱ひげ項目が等しいサイズを持つことを保証します。したがって、箱ひげ項目に値を追加したり削除したりすると、箱ひげ図シリーズのすべての箱ひげ項目に同じ変更が加えられます。
次のQMLコード・スニペットは、3つの箱ひげ項目を持つ箱ひげ図系列を作成します(モデルには少なくとも4つの行があると仮定します)。各Box-and-whiskers項目は、列1から始まるデータを含みます。項目の名前は、行ヘッダによって定義されます。
BoxPlotSeries { HBoxPlotModelMapper { model: myCustomModel // QAbstractItemModel derived implementation firstBoxSetRow: 1 lastBoxSetRow: 3 firstColumn: 1 } }
VBoxPlotModelMapperも参照 。
プロパティのドキュメント
columnCount : int |
箱ひげ図系列のデータとしてマッピングされるモデルの列数。最小値およびデフォルト値は-1(モデルの列数に制限される数)。
firstBoxSetRow : int |
最初の箱ひげ図項目のデータ・ソースとして使用されるモデルの行。デフォルト値は -1(無効なマッピング)。
firstColumn : int |
箱ひげ図系列の箱ひげ項目の最初の値を含むモデルの列。デフォルト値は 0。
lastBoxSetRow : int |
最後の箱ひげ項目のデータ・ソースとして使用されるモデルの行。デフォルト値は-1(無効なマッピング)。
model : SomeModel |
マッパーが使用するデータモデル。モデルを実装し、QMLに公開する必要があります。
注意: モデルは行や列の追加や削除、セル内のデータの変更をサポートする必要があります。
series : AbstractBarSeries |
マッパーが使用するボックスプロット系列。このシリーズがマッパーに設定されると、シリーズ内のデータは全て破棄されます。新しい系列が指定されると、古い系列は切り離される(ただしデータは保持される)。
© 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.