Change path in PathView with NumberAnimation of its items



  • I have a PathView with Rectangle as the delegate. I change the PathView.path to another path and I want to play animation of moving PathView items to their new positions. Something like this:

    PathView {
      id: pathView
      delegate: Rectangle {
        Behavior on x {
          NumberAnimation {
            duration: 5000
          }
        }
      }
    
      path: path1
    }
    

    But it doesn't work. Is it possible to do somehow?



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