IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

BarCategoryAxis QML Type

Adds categories to a chart's axes.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

BarCategoryAxis QML Type

  • Import Statement: import QtCharts 2.4

  • Inherits:: AbstractAxis

  • Instantiates:: QBarCategoryAxis

Detailed Description

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:

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

Property Documentation

 

categories : QStringList

The categories of an axis.

[read-only] 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.

Signal Documentation

 

rangeChanged(string min, string max)

This signal is emitted when min or max value of the axis changes.

The corresponding signal handler is onRangeChanged.

The corresponding handler is onRangeChanged.

Method Documentation

 

void clear()

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

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+