[SOLVED]QML NumberAnimation - ease



  • 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...



  • 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



  • 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 ?



  • 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]



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.