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. [SOLVED] animation when changing qml pages
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] animation when changing qml pages

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 2.3k 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.
  • G Offline
    G Offline
    godbod
    wrote on last edited by
    #1

    Hello,

    How are you?
    I need help about adding animation when changing qml pages. How can I manage to do that please?.
    thanks in advance.

    L'imagination est tout, c'est l’aperçu des futures attractions de la vie.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      daliusd
      wrote on last edited by
      #2

      There is no such QML element Page. Are you using components? If you are then animation is handled for you. If you are not then you will have to do a little bit of manual work. Read: http://doc.qt.digia.com/qt/qdeclarativeanimation.html

      1 Reply Last reply
      0
      • G Offline
        G Offline
        godbod
        wrote on last edited by
        #3

        I meant qml files, with a loader actually. Can I have an example ? Or just an insight of how I could manage to do it.

        L'imagination est tout, c'est l’aperçu des futures attractions de la vie.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          daliusd
          wrote on last edited by
          #4
          1. Start without loader
          2. Create two screen sized pages (e.g. rectangles of different colour) side-by-side (one rectangle will naturally be out-of-screen, e.g. by setting property x to width)
          3. Add sliding animation using states and transitions (change rect 1 X from 0 to -width and rect 2 x from width to 0).
          4. Add loader when you will have animation in place.

          Does that help?

          1 Reply Last reply
          0
          • G Offline
            G Offline
            godbod
            wrote on last edited by
            #5

            Oh thank you! That really help indeed.

            L'imagination est tout, c'est l’aperçu des futures attractions de la vie.

            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