Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Transition animations with Qt Quick Controls
Qt 6.11 is out! See what's new in the release blog

Transition animations with Qt Quick Controls

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 630 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sampkaar
    wrote on last edited by
    #1

    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
    }
    }
    }@

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved