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 ?
-
Hi Robot,
yeah....i did that tooo...but i dont see any transition effects on that tooo -
Hi Robot,
Forgot to tell that i created my ListView already with 3 aml pages.
So add:Transition will have an effect only when new item is added to view..so i am looking for other than that... -
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.
-
Hi,
I came across pathview..i am trying to get output...will update soon wen completed