BarCategoryAxis QML Type

チャートの軸にカテゴリを追加します。詳細...

Import Statement: import QtCharts 2.8
In C++: QBarCategoryAxis
Inherits:

AbstractAxis

プロパティ

信号

方法

詳細説明

BarCategoryAxis タイプは、目盛り、グリッド線、および陰影を持つ軸線を表示するように設定できます。カテゴリは目盛りの間に描画されます。これは線分系列でも使用できます。

次の QML スニペットは BarCategoryAxis の使用方法を示しています:

ChartView {
    BarCategoryAxis {
        id: categoryAxis
        categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun" ]
    }
// Add a few series...
}

プロパティの説明

categories : QStringList

軸のカテゴリ。


count : int [read-only]

軸のカテゴリの数。


max : string

軸の最大値。


min : string

軸の最小値。


シグナル・ドキュメント

rangeChanged(string min, string max)

このシグナルは、軸の値min またはmax が変更されると発行される。

対応するシグナル・ハンドラはonRangeChanged です。

注: 対応するハンドラはonRangeChanged です。


メソッド・ドキュメント

void clear()

すべてのカテゴリーを削除します。軸範囲の最大値と最小値を QString::null に設定します。


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