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. Animation using
Qt 6.11 is out! See what's new in the release blog

Animation using

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 2 Posters 840 Views 2 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.
  • Q Offline
    Q Offline
    qcoderpro
    wrote on last edited by qcoderpro
    #1

    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-worxR 1 Reply Last reply
    0
    • Q 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-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @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
      0
      • raven-worxR raven-worx

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

        Q Offline
        Q Offline
        qcoderpro
        wrote on last edited by
        #3

        @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-worxR 1 Reply Last reply
        0
        • Q qcoderpro

          @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-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @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
          0
          • raven-worxR raven-worx

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

            Q Offline
            Q Offline
            qcoderpro
            wrote on last edited by
            #5

            @raven-worx

            Left what out in the example? The y position?

            x: 40; y: root.height-height
            
            raven-worxR 1 Reply Last reply
            0
            • Q qcoderpro

              @raven-worx

              Left what out in the example? The y position?

              x: 40; y: root.height-height
              
              raven-worxR Offline
              raven-worxR Offline
              raven-worx
              Moderators
              wrote on last edited by
              #6

              @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
              0

              • Login

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