LogValue3DAxisFormatter QML Type
为对数值轴提供格式化规则。更多
Import Statement: | import QtGraphs |
In C++: | QLogValue3DAxisFormatter |
Inherits: |
- 所有成员(包括继承成员)的列表
- LogValue3DAxisFormatter 是Qt Graphs QML Types for 3D 的一部分。
属性
- autoSubGrid : bool
- base : real
- edgeLabelsVisible : bool
信号
- autoSubGridChanged(bool enabled)
- baseChanged(real base)
- edgeLabelsVisibleChanged(bool enabled)
详细说明
当格式化器附加到值坐标轴时,坐标轴范围不能包括负值或零。
属性文档
autoSubGrid : bool |
定义是否自动生成子网格位置。
如果将此属性值设置为true
,计算子网格线位置时将忽略父轴子段计数。子网格位置根据base 属性值自动生成。子网格线数设置为基准值减一,并向下舍入。当基准值为零时,该属性将被忽略。默认值为true
。
另请参阅 base 和Value3DAxis::subSegmentCount 。
base : real |
用于映射坐标轴值的对数基数。如果基数不为零,计算网格线和标签位置时将忽略父轴线段数。如果希望像正常值坐标轴一样将范围划分为相等的段,请将此属性值设置为零。
基数必须为零或正值,且不能等于 1。默认值为 10。
另请参阅 Value3DAxis::segmentCount 。
edgeLabelsVisible : bool |
定义轴上的第一个和最后一个标签是否可见。
当base 属性值非零时,整个坐标轴范围通常不会被平均分成若干段。第一段和最后一段往往比其他段要小。在极端情况下,这会导致首尾两条网格线上的标签重叠。通过将此属性设置为false
,可以在分段不完全适合坐标轴的情况下,抑制显示坐标轴的最小和最大标签。默认值为true
。
另请参阅 base 和Abstract3DAxis::labels 。
信号文档
autoSubGridChanged(bool enabled) |
当指定是否自动生成子网格位置的值更改为enabled 时,将发出此信号。
注: 相应的处理程序是onAutoSubGridChanged
。
baseChanged(real base) |
当用于映射坐标轴值的对数基数变为base 时,将发出该信号。
注: 相应的处理程序是onBaseChanged
。
edgeLabelsVisibleChanged(bool enabled) |
当指定是否在坐标轴上显示第一个和最后一个标签的值更改为enabled 时,将发出该信号。
注: 相应的处理程序是onEdgeLabelsVisibleChanged
。
© 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.