Category3DAxis QML Type

Manipulates an axis of a graph. 更多...

import 語句: import QtGraphs
在 C++: QCategory3DAxis
繼承:

Abstract3DAxis

特性

信號

詳細描述

This type provides an axis that can be given labels.

特性文檔編製

autoAdjustRange : bool

Defines whether the axis will automatically adjust the range so that all data fits in it.

labelAutoAngle : real

The maximum angle the labels can autorotate when the camera angle changes. The angle can be between 0 and 90, inclusive. The default value is 0. If the value is 0, axis labels do not automatically rotate. If the value is greater than zero, labels attempt to orient themselves toward the camera, up to the specified angle.

labelSize : real [since 6.9]

The size of the label. The default for this value is 1.0 .

該特性在 Qt 6.9 引入。

另請參閱 scaleLabelsByCount .

labels : list

The labels for the axis are applied to categories. If there are fewer labels than categories, the remaining ones do not have a label. If category labels are not defined explicitly, labels are generated from the data row (or column) labels of the primary series of the graph.

labelsVisible : bool

Defines whether the axis labels are visible in the primary graph view.

默認值為 true .

max : real

The maximum value on the axis. When setting this property, the minimum value is adjusted if necessary, so the range remains valid.

min : real

The minimum value on the axis. When setting this property, the maximum value is adjusted if necessary, so the range remains valid.

orientation : Abstract3DAxis . AxisOrientation [read-only]

The orientation of the axis.

scaleLabelsByCount : bool [since 6.9]

Whether the labels will automatically adjust their size based on the total amount of labels.

該特性在 Qt 6.9 引入。

另請參閱 labelSize .

title : string

The title for the axis.

另請參閱 titleVisible and titleFixed .

titleFixed : bool

The rotation of axis titles.

false , axis titles in the primary graph view will be rotated towards the camera similarly to the axis labels. If true , axis titles are only rotated around their axis but are not otherwise oriented towards the camera. This property does not have any effect if the labelAutoAngle 特性值為 0。默認值為 true .

另請參閱 labelAutoAngle , title ,和 titleVisible .

titleOffset : real

The position of the axis title on the axis. The value must be between -1.0f and 1.0f

Default value is 0 .

另請參閱 title and titleVisible .

titleVisible : bool

Defines whether the axis title is visible in the primary graph view.

默認值為 false .

另請參閱 title and titleFixed .

type : Abstract3DAxis . AxisType [read-only]

The type of the axis.

信號文檔編製

autoAdjustRangeChanged ( bool autoAdjust )

此信號發射,當 autoAdjustRange property value changes to autoAdjust .

注意: 相應處理程序是 onAutoAdjustRangeChanged .

columnLabelsChanged ()

This signal is emitted when column labels change.

注意: 相應處理程序是 onColumnLabelsChanged .

labelAutoAngleChanged ( real angle )

This signal is emitted when the angle of label rotation changes to angle .

注意: 相應處理程序是 onLabelAutoAngleChanged .

labelSizeChanged ( real size )

此信號發射,當 labelSize property value changes to size .

注意: 相應處理程序是 onLabelSizeChanged .

labelVisibilityChanged ( bool visible )

This signal is emitted when the label visibility changes to visible .

注意: 相應處理程序是 onLabelVisibilityChanged .

labelsChanged ()

This signal is emitted when axis labels change.

注意: 相應處理程序是 onLabelsChanged .

maxChanged ( real value )

This signal is emitted when the maximum value of the axis changes to value .

注意: 相應處理程序是 onMaxChanged .

minChanged ( real value )

This signal is emitted when the minimum value of the axis changes to value .

注意: 相應處理程序是 onMinChanged .

orientationChanged ( AxisOrientation orientation )

This signal is emitted when axis orientation changes to orientation .

注意: 相應處理程序是 onOrientationChanged .

rangeChanged ( real min , real max )

This signal is emitted when the axis range changes. min and max are the min and max of the new range.

注意: 相應處理程序是 onRangeChanged .

rowLabelsChanged ()

This signal is emitted when row labels change.

注意: 相應處理程序是 onRowLabelsChanged .

scaleLabelsByCountChanged ( bool adjust )

此信號發射,當 scaleLabelsByCount property value changes to adjust .

注意: 相應處理程序是 onScaleLabelsByCountChanged .

titleChanged ( string newTitle )

此信號發射,當 title changes to newTitle .

注意: 相應處理程序是 onTitleChanged .

titleFixedChanged ( bool fixed )

此信號發射,當 titleFixed property value changes to fixed .

注意: 相應處理程序是 onTitleFixedChanged .

titleOffsetChanged ( real offset )

此信號發射,當 titleOffset property value changes to offset .

注意: 相應處理程序是 onTitleOffsetChanged .

titleVisibilityChanged ( bool visible )

This signal is emitted when the title visibility changes to visible .

注意: 相應處理程序是 onTitleVisibilityChanged .