Important: Please read the Qt Code of Conduct -

Transition animations with Qt Quick Controls

  • Hi,

    When creating Qt Quick controls with custom style, is there a way to define transition animations for the elements given as visuals for the style?
    For instance add easing on the x-axis movement of the handle in the following piece of code.

    @Slider {
    anchors.centerIn: parent
    style: SliderStyle {
    groove: Rectangle {
    implicitWidth: 200
    implicitHeight: 8
    color: "gray"
    radius: 8
    handle: Rectangle {
    anchors.centerIn: parent
    color: control.pressed ? "white" : "lightgray"
    border.color: "gray"
    border.width: 2
    width: 34
    height: 34
    radius: 12

Log in to reply