Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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?