BarCategoryAxis QML Type

Adds categories to a chart's axes. 更多...

import 語句: import QtCharts 2.2
實例化: QBarCategoryAxis
繼承: AbstractAxis

特性

信號

方法

詳細描述

The BarCategoryAxis type can be set up to show an axis line with tick marks, grid lines, and shades. Categories are drawn between the ticks. It can be used also with a line series.

The following QML snippet illustrates how to use BarCategoryAxis :

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

特性文檔編製

categories : QStringList

The categories of an axis.

count : int

The number of categories of an axis.

max : string

The maximum value on the axis.

min : string

The minimum value on the axis.


信號文檔編製

rangeChanged ( string min , string max )

此信號發射,當 min or max value of the axis changes.

The corresponding signal handler is onRangeChanged .


方法文檔編製

void clear ()

Removes all categories. Sets the maximum and minimum values of the axis range to QString::null .