Nesta página

QCategory3DAxis Class

A classe QCategory3DAxis manipula um eixo de um gráfico. Saiba mais...

Cabeçalho: #include <QCategory3DAxis>
CMake: find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs)
qmake: QT += graphs
No QML: Category3DAxis
Herda de: QAbstract3DAxis

Propriedades

Funções públicas

QCategory3DAxis(QObject *parent = nullptr)
virtual ~QCategory3DAxis() override
QStringList labels() const
void setLabels(const QStringList &labels)

Descrição detalhada

QCategory3DAxis fornece um eixo ao qual podem ser atribuídos rótulos. O eixo é dividido em categorias de tamanho igual com base no tamanho da janela de dados definido pela configuração do intervalo do eixo.

Linhas de grade são traçadas entre as categorias, se estiverem visíveis. Os rótulos são exibidos nas posições das categorias, caso sejam fornecidos.

Documentação das propriedades

labels : QStringList

Essa propriedade contém os rótulos dos eixos aplicados às categorias.

Se houver menos rótulos do que categorias, as restantes não terão rótulo. Se os rótulos das categorias não forem definidos explicitamente, os rótulos serão gerados a partir dos rótulos das linhas (ou colunas) de dados da série principal do gráfico.

Funções de acesso:

QStringList labels() const
void setLabels(const QStringList &labels)

Sinal de notificação:

void labelsChanged()

Documentação das funções de membro

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

Cria um eixo 3D da categoria com o pai ` parent`.

[override virtual noexcept] QCategory3DAxis::~QCategory3DAxis()

Exclui o eixo 3D da categoria.

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