aboutsummaryrefslogtreecommitdiffstats
path: root/tests/baseline/controls/data/rangeSlider/range_slider.qml
blob: a06749eff6b90d1659c05eebd71b0d41a269ab71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts

ColumnLayout {
    width: 200
    height: 500
    spacing: 2

    RangeSlider {
        first.value: 0.25
        second.value: 0.75
        wheelEnabled: true
    }

    RangeSlider {
        first.value: 0.0
        second.value: 0.9
    }

    RangeSlider {
        first.value: 0.25
        second.value: 0.35
        width: 100
    }

    RangeSlider {
        first.value: 0.75
        second.value: 1.0
        snapMode: RangeSlider.SnapAlways
        height: 100
    }

    RangeSlider {
        from: 0.0
        stepSize: 0.2
        orientation: Qt.Vertical
        to: 1.0
        enabled: false
        first.value: 0.25
        second.value: 0.75
    }
}