QCategory3DAxis Class

QCategory3DAxis 类可操作图形的坐标轴。更多

Header: #include <QCategory3DAxis>
CMake: find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs)
qmake: QT += graphs
在 QML 中: Category3DAxis
继承: QAbstract3DAxis

属性

公共功能

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

详细说明

QCategory3DAxis 提供了一个可赋予标签的坐标轴。该坐标轴根据通过设置坐标轴范围定义的数据窗口大小划分为大小相等的类别。

如果可见,将在类别之间绘制网格线。如果提供了标签,则会在类别的位置绘制标签。

属性文档

labels : QStringList

该属性用于保存应用于类别的轴标签。

如果标签数量少于类别数量,则剩余的类别没有标签。如果未明确定义类别标签,则根据图表主序列的数据行(或列)标签生成标签。

访问功能

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

Notifier 信号:

void labelsChanged()

成员函数文档

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

使用父级parent 构建类别 3D 轴。

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

销毁类别 3D 轴。

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