A circular dial that is rotated to set a value. 更多...
import 语句: | import QtQuick.Extras 1.4 |
Since: | Qt 5.5 |
继承: | FocusScope |
The Dial is similar to a traditional dial knob that is found on devices such as stereos or industrial equipment. It allows the user to specify a value within a range.
像 CircularGauge , Dial can display tickmarks to give an indication of the current value. When a suitable stepSize is combined with tickmarkStepSize , the dial "snaps" to each tickmark.
You can create a custom appearance for a Dial by assigning a DialStyle .
This property specifies whether the dial should gain active focus when pressed.
默认值为
false
.
另请参阅 pressed .
This property holds whether the button is being hovered.
The largest value allowed by the dial.
默认值为
1.0
.
另请参阅 value and minimumValue .
The smallest value allowed by the dial.
默认值为
0.0
.
另请参阅 value and maximumValue .
返回
true
if the dial is pressed.
另请参阅 activeFocusOnPress .
默认值为
0.0
.
style : Component |
The style Component for this control.
另请参阅 Qt Quick Controls Styles QML Types .
This property determines whether or not the dial displays tickmarks, minor tickmarks, and labels.
For more fine-grained control over what is displayed, the following style components of DialStyle 可以被使用:
默认值为
true
.
The angle of the handle along the dial, in the range of
0.0
to
1.0
.
默认值为
0.0
.