Moving Pages using Listview with viewTransition
-
Hi Friends,
I am developing an application where i need to move all of my pages one by one on its own.I used Loader to load with help of ListModel.Upon MouseClick on page i am iterating through pages.What i need to do is ,it has to be automated so that after some delay it has to iterate through each page.I dont want to use timer object.I need to use Transitions here.
In the ListView I used move:Transition {
NumberAnimation {property:"x,y";duration:500}
}..... so that wenever page gets loaded i need to have this effect on page which does not show any effect on pages...
so please kindly help me where i am stepping wrong or any ideas are highly appreciated..Thanks in Advance....
-
Hi,
Did you tried using "add":http://qt-project.org/doc/qt-5/qml-qtquick-listview.html#add-prop or "populate":http://qt-project.org/doc/qt-5/qml-qtquick-listview.html#populate-prop instead of move ?
-
bq. .What i need to do is ,it has to be automated so that after some delay it has to iterate through each page.I dont want to use timer object.
Since you want it to animate after some delay you will have to use a Timer.
Other than that you can use "when":http://qt-project.org/doc/qt-5/qml-qtquick-state.html#when-prop property of "State":http://qt-project.org/doc/qt-5/qml-qtquick-state.htmlto animate the QML page when the condition gets satisfied.