Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Moving Pages using Listview with viewTransition
Qt 6.11 is out! See what's new in the release blog

Moving Pages using Listview with viewTransition

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 2 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    beemaneni
    wrote on last edited by
    #1

    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....

    Bala B
    Infinite Computer systems
    Chennai

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      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 ?

      157

      1 Reply Last reply
      0
      • B Offline
        B Offline
        beemaneni
        wrote on last edited by
        #3

        Hi Robot,
        yeah....i did that tooo...but i dont see any transition effects on that tooo

        Bala B
        Infinite Computer systems
        Chennai

        1 Reply Last reply
        0
        • B Offline
          B Offline
          beemaneni
          wrote on last edited by
          #4

          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...

          Bala B
          Infinite Computer systems
          Chennai

          1 Reply Last reply
          0
          • p3c0P Offline
            p3c0P Offline
            p3c0
            Moderators
            wrote on last edited by
            #5

            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.

            157

            1 Reply Last reply
            0
            • B Offline
              B Offline
              beemaneni
              wrote on last edited by
              #6

              Hi,
              I came across pathview..i am trying to get output...will update soon wen completed

              Bala B
              Infinite Computer systems
              Chennai

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved