Adds values to a graph's axes. 更多...
| import 語句: |
import QtGraphs
|
| 在 C++: | QValueAxis |
| 繼承: |
The ValueAxis type can be set up to show an axis line with tick marks, grid lines, and shades. The values on the axis are drawn at the positions of tick marks.
The following example code illustrates how to use the ValueAxis type:
GraphsView {
axisX: ValueAxis {
max: 10
tickInterval: 1
}
axisY: ValueAxis {
min -20
max: 40
}
LineSeries {
// Add a few XYPoint data...
}
}
|
labelDecimals : int |
The number of decimals used for showing the labels. When set to -1, decimal amount is adjusted automatically based on the values range. The default value is -1.
|
labelFormat : string |
格式字符串支持的以下轉換說明符、長度修飾符和標誌的提供通過
printf()
在標準 C++ 庫:d、i、o、x、X、f、F、e、E、g、G、c。
The default value is empty, in which case 'f' format is used.
另請參閱 QString::asprintf ().
|
max : real |
The maximum value on the axis.
When setting this property, the minimum value is adjusted if necessary, to ensure that the range remains valid. The default value is 10.0
|
min : real |
The minimum value on the axis.
When setting this property, the maximum value is adjusted if necessary, to ensure that the range remains valid. The default value is 0.0
|
subTickCount : int |
The number of subticks on the axis. This indicates how many subticks are drawn between major lines on the graph. Labels are not drawn for subticks. The default value is 0.
|
tickAnchor : real |
The base value where the dynamically placed tick marks and labels are started from. The default value is 0.
|
tickInterval : real |
The interval between dynamically placed tick marks and labels. The default value is 0, which means that intervals are automatically calculated based on the min and max range.
|
labelDecimalsChanged ( int decimals ) |
This signal is emitted when the amount of axis label decimals changes to decimals .
注意:
相應處理程序是
onLabelDecimalsChanged
.
|
labelFormatChanged ( string format ) |
This signal is emitted when the format of axis labels changes to format .
注意:
相應處理程序是
onLabelFormatChanged
.
|
maxChanged ( real max ) |
This signal is emitted when the maximum value of the axis changes to max .
注意:
相應處理程序是
onMaxChanged
.
|
minChanged ( real min ) |
This signal is emitted when the minimum value of the axis changes to min .
注意:
相應處理程序是
onMinChanged
.
This signal is emitted when the minimum or maximum value of the axis changes to min and max ,分彆。
注意:
相應處理程序是
onRangeChanged
.
|
subTickCountChanged ( int subTickCount ) |
This signal is emitted when the number of subticks on the axis, specified by subTickCount ,改變。
注意:
相應處理程序是
onSubTickCountChanged
.
|
tickAnchorChanged ( real tickAnchor ) |
This signal is emitted when the tick anchoring value changes to tickAnchor .
注意:
相應處理程序是
onTickAnchorChanged
.
|
tickIntervalChanged ( real tickInterval ) |
This signal is emitted when the tick interval value, changes to tickInterval .
注意:
相應處理程序是
onTickIntervalChanged
.