ValueAxis3D QML Type
操作图表的某个坐标轴。更多...
| Import Statement: | import QtDataVisualization 1.12 |
| Since: | QtDataVisualization 1.0 |
| In C++: | QValue3DAxis |
| Inherits: | |
| Status: | Deprecated |
此类型已弃用。我们强烈建议不要在新的代码中使用它。
属性
- formatter : ValueAxis3DFormatter
(since QtDataVisualization 1.1) - labelFormat : string
- reversed : bool
(since QtDataVisualization 1.1) - segmentCount : int
- subSegmentCount : int
详细说明
此类提供了一个轴,可为其指定数值范围以及用于将该范围划分的段和子段数量。
属性文档
formatter : ValueAxis3DFormatter [since QtDataVisualization 1.1]
要使用的轴格式化器。设置新格式化器时,任何现有的格式化器都会被删除。
该属性自 QtDataVisualization 1.1 起引入。
labelFormat : string
该轴上标签应采用的标签格式。
该格式字符串支持标准 C++ 库中printf() 提供的以下转换指定符、长度修饰符和标志: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 。
© 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.