ValueAxis3D QML Type

操纵图形的坐标轴。更多

Import Statement: import QtDataVisualization 1.9
Since: QtDataVisualization 1.0
In C++: QValue3DAxis
Inherits:

AbstractAxis3D

属性

详细说明

该类型提供了一个坐标轴,可以给定数值范围以及用于划分范围的段和子段计数。

属性文档

formatter : ValueAxis3DFormatter [since QtDataVisualization 1.1]

要使用的坐标轴格式。设置新格式时,任何现有格式都将被删除。

此属性在 QtDataVisualization 1.1 中引入。


labelFormat : string

用于此轴上标签的标签格式。

格式字符串支持printf() 在标准 C++ 库中提供的以下转换规范、长度修饰符和标志:d、i、o、x、X、f、F、e、E、g、G、c。

如果AbstractGraph3D::locale 不是"C" ,则支持的指定符仅限于:d、e、E、f、g、G 和 i。此外,只支持精度修饰符。其余格式来自应用程序的默认Locale

另请参见 AbstractGraph3D::locale


reversed : bool [since QtDataVisualization 1.1]

如果true ,坐标轴将反向渲染。也就是说,在渲染图形时,最小值和最大值的位置会互换。此属性不会影响轴的实际最小值和最大值。

此属性在 QtDataVisualization 1.1 中引入。


segmentCount : int

坐标轴上的段数。这表示要绘制多少个标签。要绘制的网格线数按以下公式计算:segments * subsegments + 1.预设默认值为5 。该值不能低于1


subSegmentCount : int

轴上每个线段内部的子线段数。除每个线段外,每个子线段之间也会绘制网格线。预设默认值为1 。该值不能低于1


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