이 페이지에서

BarCategoryAxis QML Type

차트의 축에 범주를 추가합니다. 더 보기...

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

AbstractAxis

Status: Deprecated

이 유형은 더 이상 사용되지 않습니다. 새로운 코드에서는 이 유형을 사용하지 않는 것을 강력히 권장합니다.

속성

신호

방법

상세 설명

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.