Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Animation using

    QML and Qt Quick
    2
    6
    244
    Loading More Posts
    • 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.
    • Q
      qcoderpro last edited by qcoderpro

      What does the sentence below mean in the First Object down here, please?
      It’s even disturbing as the y-position is set for a fraction of a second to a new value before the animation starts. Such competing property changes should be avoided.

      The y position is: y: root.height-height
      Does the author mean we should not set x/y positions for the object!?

      raven-worx 1 Reply Last reply Reply Quote 0
      • raven-worx
        raven-worx Moderators @qcoderpro last edited by

        @qcoderpro
        the behavior animation is triggered on the value change of bound property. Thus the value gets set first and then the animation starts and updates the value (animated).

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        Q 1 Reply Last reply Reply Quote 0
        • Q
          qcoderpro @raven-worx last edited by

          @raven-worx

          I know that. What I don't know is the connection between the sentence above and the object. What part of the code is defective that must be avoided?

          raven-worx 1 Reply Last reply Reply Quote 0
          • raven-worx
            raven-worx Moderators @qcoderpro last edited by

            @qcoderpro
            the line you posted?
            They already left it out in the example

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            Q 1 Reply Last reply Reply Quote 0
            • Q
              qcoderpro @raven-worx last edited by

              @raven-worx

              Left what out in the example? The y position?

              x: 40; y: root.height-height
              
              raven-worx 1 Reply Last reply Reply Quote 0
              • raven-worx
                raven-worx Moderators @qcoderpro last edited by

                @qcoderpro
                ah my fault, sry.
                The y property declaration is on the same line, oversaw that

                --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                If you have a question please use the forum so others can benefit from the solution in the future

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post