How to limiti Dial control value?

  • Hi
    i created a QML page contains a Dial control and a Slider. values of each of them controls the value of another.

            id: dialC
            value: slider.value
        Slider {
            value: dialC.value
            orientation: Qt.Vertical

    i have this problem: when i rotate the dial control, after that it reaches to max value, it goes to 0.0 value (because it can rotate unlimited rounds!), slider goes to min value too.
    how i can limit max rounds of dial control to 1 round?
    i mean dial only rotates one rounds and stays in max/min.
    i want it rotates only one round. (for example only values between 0.0 and 1.0)

    thanks in advance

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.