Dial QML Type

  • Import Statement: import QtQuick.Controls

  • Inherits: Control

  • Group: Dial is part of qtquickcontrols-input

Detailed Description

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.

Image non disponible

The value of the dial is set with the value property. The range is set with the from and to properties. To enable or disable wrapping, use the wrap property.

The dial can be manipulated with a keyboard. It supports the following actions:

Action

Key

Decrease value by stepSize

Qt.Key_Left

Decrease value by stepSize

Qt.Key_Down

Set value to from

Qt.Key_Home

Increase value by stepSize

Qt.Key_Right

Increase value by stepSize

Qt.Key_Up

Set value to to

Qt.Key_End

Dial supports three input modes: Dial.Circular, Dial.Horizontal and Dial.Vertical. The circular input mode operates on an absolute input system, where the position of the cursor within the dial directly reflects its value. The horizontal and vertical input modes use a relative input system, where changes in the cursor's position are "added" to the value of the dial.

The following image illustrates the directions in which the various input modes track movement:

Image non disponible

See Also

Property Documentation

 

[read-only] angle : real

This property holds the angle of the handle.

The range is from -140 degrees to 140 degrees.

See Also

See also position

from : real