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

Sean Harmer sean.harmer at kdab.com
Sun Apr 27 12:48:09 CEST 2014


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

Cheers,

Sean
--
Dr Sean Harmer | sean.harmer at kdab.com | Managing Director UK
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions



More information about the Interest mailing list