[Interest] QML/Quick PathView with custom animation without user interaction

Cornelius Hald hald at icandy.de
Tue Apr 29 11:44:03 CEST 2014


On Sun, 2014-04-27 at 11:48 +0100, Sean Harmer wrote:
> On Sunday 27 April 2014 11:54:08 Cornelius Hald wrote:
> > On Sat, 2014-04-26 at 17:03 -0500, Keith Gardner wrote:
> > > On Saturday, April 26, 2014, Cornelius Hald <hald at icandy.de> wrote:
> > >         Hi,
> > >         
> > >         I'm looking for a way to define an animation on PathView that
> > >         should run
> > >         without user interaction.
> > >         
> > >         Setting the 'currentIndex' property gives a rather boring
> > >         animation that
> > >         simply accelerates, decelerates and stops at the selected
> > >         index.
> > >         
> > >         I'd like to have something like:
> > >         - accelerate
> > >         - spin around the path for 20s
> > >         - decelerate
> > >         - stop at selected index with some bounce easing
> > > 
> > > Try a SequentianAnimation with the sub animations you listed. That
> > > will allow the next animation to start after the previous one has
> > > finished.  Then you need to trigger the SequentialAnimation at the
> > > proper time.
> > 
> > Sounds good. Do you know if/how I still can make use of the Path? Is
> > there a way to use a Path as the input for ordinary Animations?
> 
> http://doc-snapshot.qt-project.org/qt5-stable/qml-qtquick-pathanimation.html#details
> 
> and
> 
> http://doc-snapshot.qt-project.org/qt5-stable/qml-qtquick-pathinterpolator.html

Thanks Sean, that's very helpful. Somehow I wasn't able to find those
elements but they look like exactly what I'm looking for.

Cheers,
Conny





More information about the Interest mailing list