本页内容

LogValue3DAxisFormatter QML Type

提供了对数值轴的格式化规则。更多...

Import Statement: import QtGraphs
In C++: QLogValue3DAxisFormatter
Inherits:

Value3DAxisFormatter

属性

信号

详细说明

当格式化器附加到数值轴时,该轴的范围不能包含负值或零。

属性文档

autoSubGrid : bool

用于指定是否自动生成子网格位置。

如果此属性值设置为true ,则在计算子网格线位置时将忽略父轴的子段数。子网格位置将根据base 属性值自动生成。子网格线的数量设置为基数减一,并向下取整。当基数为零时,此属性将被忽略。默认值为true 。

另请参阅 base 和Value3DAxis::subSegmentCount 。

base : real

用于映射坐标轴值的对数底数。如果底数不为零,在计算网格线和标签位置时,将忽略父坐标轴的区段数。如果希望该范围像普通数值轴一样被划分为等分区段,请将此属性值设置为零。

底数必须为零或正数,且不能等于一。默认值为十。

另请参阅 Value3DAxis::segmentCount 。

edgeLabelsVisible : bool

用于指定坐标轴上的起始标签和结束标签是否显示。

当base 属性值不为零时,整个坐标轴范围通常不会被均匀地划分为若干区间。 第一个和最后一个分段通常比其他分段更小。在极端情况下,这可能会导致第一个和最后两个网格线上的标签发生重叠。通过将此属性设置为false ,当分段无法精确适配坐标轴时,您可以隐藏坐标轴的最小值和最大值标签。默认值为true 。

另请参阅 base 和Abstract3DAxis::labels 。

Signal 文档

autoSubGridChanged(bool enabled)

当指定是否自动生成子网格位置的值变为enabled 时,会发出此信号。

注意: 相应的处理程序 为onAutoSubGridChanged 。

baseChanged(real base)

当用于映射坐标轴值的对数底数变为base 时,会发出此信号。

注意: 相应的处理程序 为onBaseChanged 。

edgeLabelsVisibleChanged(bool enabled)

当指定是否在坐标轴上显示起始和结束标签的值变为enabled 时,将触发此信号。

注意: 相应的处理程序 是onEdgeLabelsVisibleChanged 。

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