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

QCategory3DAxis Class

The QCategory3DAxis class manipulates an axis of a graph.

This class was introduced in QtDataVisualization 1.0.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QCategory3DAxis Class

  • Header: QCategory3DAxis

  • Since: QtDataVisualization 1.0

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS DataVisualization)

    target_link_libraries(mytarget PRIVATE Qt6::DataVisualization)

  • qmake: QT += datavisualization

  • Inherited By:

  • Instantiated By: qml-qtdatavisualization-categoryaxis3d.xml

  • Inherits: QAbstract3DAxis

Detailed Description

QCategory3DAxis provides an axis that can be given labels. The axis is divided into equal-sized categories based on the data window size defined by setting the axis range.

Grid lines are drawn between categories, if visible. Labels are drawn to positions of categories if provided.

Property Documentation

 

labels : QStringList

This property holds the labels for the axis applied to categories.

If there are fewer labels than categories, the remaining ones do not have a label. If category labels are not defined explicitly, labels are generated from the data row (or column) labels of the primary series of the graph.

Access functions:

  • labels() const

  • void setLabels(const &labels)

Notifier signal:

  • void labelsChanged()

Member Function Documentation

 

[explicit] QCategory3DAxis::QCategory3DAxis(QObject *parent = nullptr)

Constructs a category 3D axis with the parent parent.

[virtual] QCategory3DAxis::~QCategory3DAxis()

Destroys the category 3D axis.

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