Abstract3DAxis QML Type
三维图形轴的基本类型。有关 Abstract3DAxis 枚举,请参见QAbstract3DAxis::AxisOrientation 和QAbstract3DAxis::AxisType 。更多
| Import Statement: | import QtGraphs |
| In C++: | QAbstract3DAxis |
| Inherited By: |
- 所有成员(包括继承成员)列表
- Abstract3DAxis 是Qt Graphs QML Types for 3D 的一部分。
属性
- autoAdjustRange : bool
- labelAutoAngle : real
- labelSize : real
(since 6.9) - labels : list
- labelsVisible : bool
- max : real
- min : real
- orientation : Abstract3DAxis.AxisOrientation
- scaleLabelsByCount : bool
(since 6.9) - title : string
- titleFixed : bool
- titleOffset : real
- titleVisible : bool
- type : Abstract3DAxis.AxisType
信号
- autoAdjustRangeChanged(bool autoAdjust)
- labelAutoAngleChanged(real angle)
- labelSizeChanged(real size)
- labelVisibilityChanged(bool visible)
- labelsChanged()
- maxChanged(real value)
- minChanged(real value)
- orientationChanged(AxisOrientation orientation)
- rangeChanged(real min, real max)
- scaleLabelsByCountChanged(bool adjust)
- titleChanged(string newTitle)
- titleFixedChanged(bool fixed)
- titleOffsetChanged(real offset)
- titleVisibilityChanged(bool visible)
详细说明
财产文件
autoAdjustRange : bool
定义坐标轴是否会自动调整范围,使所有数据都适合该范围。
labelAutoAngle : real
当摄像机角度发生变化时,标签可以自动旋转的最大角度。角度范围为 0 至 90(含 90),默认值为 0。默认值为 0。如果值为 0,轴标签不会自动旋转。如果该值大于 0,标签会尝试朝向摄像机,直至达到指定角度。
labelSize : real [since 6.9]
标签的大小。该值的默认值是1.0 。
该属性在 Qt 6.9 中引入。
另请参阅 scaleLabelsByCount 。
labels : list
轴的标签。
注意: 为Value3DAxis 设置此属性没有任何作用,因为它会自动生成标签。
labelsVisible : bool
定义坐标轴标签在主图表视图中是否可见。
默认值为true 。
max : real
轴上的最大值。设置该属性时,如有必要,会对最小值进行调整,使范围保持有效。
min : real
轴上的最小值。设置该属性时,如有必要,会对最大值进行调整,使范围保持有效。
orientation : Abstract3DAxis.AxisOrientation [read-only]
轴的方向。
scaleLabelsByCount : bool [since 6.9]
标签是否会根据标签总数自动调整大小。
该属性在 Qt 6.9 中引入。
另请参阅 labelSize 。
title : string
轴的标题。
另请参阅 titleVisible 和titleFixed 。
titleFixed : bool
轴标题的旋转。
如果false ,主图视图中的轴标题将与轴标签一样朝摄像机方向旋转。如果true ,轴标题只会绕轴旋转,而不会朝向摄像机。如果labelAutoAngle 属性值为零,则此属性不会有任何影响。默认值为true 。
另请参阅 labelAutoAngle 、title 和titleVisible 。
titleOffset : real
轴标题在轴上的位置。该值必须介于-1.0f 和1.0f
默认值为0 。
另请参阅 title 和titleVisible 。
titleVisible : bool
定义坐标轴标题在主图表视图中是否可见。
默认值为false 。
另请参阅 title 和titleFixed 。
type : Abstract3DAxis.AxisType [read-only]
轴的类型。
信号文档
autoAdjustRangeChanged(bool autoAdjust)
当autoAdjustRange 属性值更改为autoAdjust 时,将发出该信号。
注: 相应的处理程序是onAutoAdjustRangeChanged 。
labelAutoAngleChanged(real angle)
当标签旋转角度变为angle 时,将发出该信号。
注: 相应的处理程序是onLabelAutoAngleChanged 。
labelSizeChanged(real size)
当labelSize 属性值更改为size 时,将发出该信号。
注: 相应的处理程序是onLabelSizeChanged 。
labelVisibilityChanged(bool visible)
当标签可见性变为visible 时,将发出该信号。
注: 相应的处理程序是onLabelVisibilityChanged 。
labelsChanged()
轴标签更改时会发出该信号。
注: 相应的处理程序是onLabelsChanged 。
maxChanged(real value)
当轴的最大值变为value 时,将发出该信号。
注: 相应的处理程序是onMaxChanged 。
minChanged(real value)
当轴的最小值变为value 时,将发出该信号。
注: 相应的处理程序是onMinChanged 。
orientationChanged(AxisOrientation orientation)
当坐标轴方向变为orientation 时发出此信号。
注: 相应的处理程序是onOrientationChanged 。
rangeChanged(real min, real max)
min 和max 是新范围的最小值和最大值。
注: 相应的处理程序是onRangeChanged 。
scaleLabelsByCountChanged(bool adjust)
当scaleLabelsByCount 属性值更改为adjust 时,将发出该信号。
注: 相应的处理程序是onScaleLabelsByCountChanged 。
titleChanged(string newTitle)
当title 更改为newTitle 时会发出该信号。
注: 相应的处理程序是onTitleChanged 。
titleFixedChanged(bool fixed)
当titleFixed 属性值更改为fixed 时,将发出该信号。
注: 相应的处理程序是onTitleFixedChanged 。
titleOffsetChanged(real offset)
当titleOffset 属性值更改为offset 时,将发出该信号。
注: 相应的处理程序是onTitleOffsetChanged 。
titleVisibilityChanged(bool visible)
当标题可见性变为visible 时发出该信号。
注: 相应的处理程序是onTitleVisibilityChanged 。
© 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.