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. Wobbly animation. Can this be fixed?

Wobbly animation. Can this be fixed?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
8 Posts 3 Posters 1.2k Views
  • 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.
  • R Offline
    R Offline
    rghvdberg
    wrote on last edited by
    #1

    0_1532325009226_wobbly.gif
    As you can see, the size circle wobbles when animating the width and height.
    Anyway to fix this?

    J.HilkJ 1 Reply Last reply
    0
    • R rghvdberg

      0_1532325009226_wobbly.gif
      As you can see, the size circle wobbles when animating the width and height.
      Anyway to fix this?

      J.HilkJ Online
      J.HilkJ Online
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @rghvdberg change the width and height in steps of 2 instead of 1.


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      R 1 Reply Last reply
      0
      • R Offline
        R Offline
        rghvdberg
        wrote on last edited by
        #3

        oh .. animating scale makes it very smooth ..
        0_1532325254607_notwobbly.gif

        1 Reply Last reply
        2
        • J.HilkJ J.Hilk

          @rghvdberg change the width and height in steps of 2 instead of 1.

          R Offline
          R Offline
          rghvdberg
          wrote on last edited by
          #4

          @J.Hilk in my app the change in width will be 2 ..
          gonna try anyway ;-)

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rghvdberg
            wrote on last edited by rghvdberg
            #5

            marking this solved
            smooth as butter :-)

            1 Reply Last reply
            0
            • GrecKoG Offline
              GrecKoG Offline
              GrecKo
              Qt Champions 2018
              wrote on last edited by
              #6

              I suppose you used anchors.centerIn: parent.

              You could fix it by setting anchors.alignWhenCentered to false :

              anchors.alignWhenCentered (default true) forces centered anchors to align to a whole pixel; if the item being centered has an odd width or height, the item will be positioned on a whole pixel rather than being placed on a half-pixel. This ensures the item is painted crisply. There are cases where this is not desirable, for example when rotating the item jitters may be apparent as the center is rounded.

              R 1 Reply Last reply
              5
              • GrecKoG GrecKo

                I suppose you used anchors.centerIn: parent.

                You could fix it by setting anchors.alignWhenCentered to false :

                anchors.alignWhenCentered (default true) forces centered anchors to align to a whole pixel; if the item being centered has an odd width or height, the item will be positioned on a whole pixel rather than being placed on a half-pixel. This ensures the item is painted crisply. There are cases where this is not desirable, for example when rotating the item jitters may be apparent as the center is rounded.

                R Offline
                R Offline
                rghvdberg
                wrote on last edited by
                #7

                @GrecKo will try. Thanks!

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  rghvdberg
                  wrote on last edited by
                  #8

                  Works absolutely perfect !

                  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