本页内容

AbstractAxis3D QML Type

图中坐标轴的基础类型。更多...

Import Statement: import QtDataVisualization 1.12
Since: QtDataVisualization 1.0
In C++: QAbstract3DAxis
Inherited By:

CategoryAxis3D and ValueAxis3D

Status: Deprecated

此类型已弃用。我们强烈建议不要在新代码中使用它。

属性

详细描述

此类型无法被创建,但包含通过子类型公开的属性。

关于 AbstractAxis3D 枚举,请参阅QAbstract3DAxis::AxisOrientation 和QAbstract3DAxis::AxisType 。

属性文档

autoAdjustRange : bool

指定坐标轴是否会自动调整范围,以便所有数据都能显示在其中。

labelAutoRotation : real

当摄像机角度发生变化时,标签可自动旋转的最大角度。该角度范围为0到90(含0和90)。默认值为0。如果该值为0,坐标轴标签不会自动旋转。如果该值大于零,标签将尝试朝向摄像机调整方向,最大旋转角度不超过指定值。

labels : list

坐标轴的标签。

注意: 为 ValueAxis3D设置 此属性不会产生任何效果,因为它会自动生成标签。

max : real

轴上的最大值。设置此属性时,系统会根据需要调整最小值,以确保范围保持有效。

min : real

轴上的最小值。设置此属性时,系统会根据需要调整最大值,以确保范围保持有效。

orientation : AbstractAxis3D.AxisOrientation [read-only]

轴的方向。

title : string

坐标轴的标题。

另请参阅 titleVisible 和titleFixed 。

titleFixed : bool

坐标轴标题的旋转。

如果设置为true ,主图视图中的坐标轴标题将像坐标轴标签一样朝向摄像机旋转。如果设置为false ,坐标轴标题仅围绕其轴线旋转,但不会朝向摄像机。如果labelAutoRotation 属性的值为零,则此属性无效。默认值为true 。

另请参阅 labelAutoRotation 、title 以及titleVisible 。

titleVisible : bool

用于指定主图表视图中是否显示轴标题。

默认值为false 。

另请参阅 title 和titleFixed 。

type : AbstractAxis3D.AxisType [read-only]

轴的类型。

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