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