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]QML NumberAnimation - ease
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]QML NumberAnimation - ease

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 3.4k 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.
  • P Offline
    P Offline
    Peppy
    wrote on last edited by
    #1

    Hi guys, can I ask you for one detail: Where has gone property ease of NumberAnimation ?? I want to make my grid resizable and because I didn't find what to use else, I am asking you...

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbrasser
      wrote on last edited by
      #2

      Hi,

      You can set an easing curve using easing.type (there are other optional parameters also available). For example:

      @NumberAnimation { easing.type: Easing.InOutQuad }@

      Regards,
      Michael

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Peppy
        wrote on last edited by
        #3

        Well, thank you for your answer, but if I want to rewrite this code:
        @
        import QtQuick 1.1
        Grid {
        move: Transition {
        NumberAnimation {
        properties: "x,y"
        ease: "easeOutBounce" // this will not work
        }
        }
        }
        @
        NumberAnimation.ease doesn't exist, what shall I do ?

        1 Reply Last reply
        0
        • X Offline
          X Offline
          X-Krys
          wrote on last edited by
          #4

          Did you just read the answer mbrasser gave you ?

          There is no ease property, the property you need is easing and it's a grouped property.

          Please first read the documentation before trying to work with animation :
          [qdoc] http://qt-project.org/doc/qt-4.8/qml-propertyanimation.html#easing.type-prop

          [quote author="Peppy" date="1334817289"]Well, thank you for your answer, but if I want to rewrite this code:
          @
          import QtQuick 1.1
          Grid {
          move: Transition {
          NumberAnimation {
          properties: "x,y"
          ease: "easeOutBounce" // this will not work
          }
          }
          }
          @
          NumberAnimation.ease doesn't exist, what shall I do ?[/quote]

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Peppy
            wrote on last edited by
            #5

            Well, I didn't know what is exactly behind string "easeOutBounce"...but already, thank you. Problem is solved. (examples still uses "ease")...

            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