BarCategoryAxis QML Type
チャートの軸にカテゴリを追加します。詳細...
| Import Statement: | import QtCharts 2.12 |
| In C++: | QBarCategoryAxis |
| Inherits: | |
| Status: | Deprecated |
このタイプは非推奨です。新しいコードでの使用は強く推奨しません。
プロパティ
- categories : list<string>
- count : int
- max : string
- min : string
信号
- rangeChanged(string min, string max)
方法
- void clear()
詳細な説明
BarCategoryAxis タイプは、目盛り、グリッド線、および陰影付きの軸線を表示するように設定できます。カテゴリは目盛りの間に描画されます。線グラフシリーズでも使用できます。
以下の QML スニペットは、BarCategoryAxis の使用方法を示しています:
ChartView {
BarCategoryAxis {
id: categoryAxis
categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun" ]
}
// Add a few series...
}プロパティのドキュメント
categories : list<string>
軸のカテゴリ。
count : int [read-only]
軸のカテゴリ数。
max : string
軸上の最大値。
min : string
軸上の最小値。
シグナルに関するドキュメント
rangeChanged(string min, string max)
このシグナルは、軸のmin またはmax の値が変更されたときに発生します。
対応するシグナルハンドラはonRangeChanged です。
注: 対応するハンドラは onRangeChanged です。
メソッドのドキュメント
void clear()
すべてのカテゴリを削除します。軸の範囲の上限値と下限値を QString::null に設定します。
© 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.