Skip to content
AtlasOSFramework API
Browse the docs

AtlasSlider

A slider with a thin accent track with round ends and a knob, horizontal or vertical, with Page Up, Page Down, Home and End keys.

Since 1.3.0

A slider: a thin track with round ends filled with the accent up to a knob in the theme's background colour. It can be vertical. For a whole number with typing, see AtlasSpinBox.

AtlasSlider is a Qt Quick Controls Slider; from, to, value, stepSize, orientation and moved work as usual.

Example

AtlasSlider { from: 0; to: 100; value: 40; onMoved: volume = value; Accessible.name: qsTr("Volume") }

Keyboard

Besides the arrow keys, Page Up and Page Down move a tenth of the range, and Home and End go to the ends.

Accessibility

Note

Name the slider for screen readers with Accessible.name; the value is spoken as its description.