Results 1 to 3 of 3

Thread: qml animation

  1. #1
    Join Date
    May 2011
    Posts
    120
    Thanks
    33
    Qt products
    Qt4
    Platforms
    Windows

    Default qml animation

    Qt Code:
    1. Behavior on y {
    2. SequentialAnimation {
    3. SmoothedAnimation{ velocity: 800 }
    4. // RotationAnimation{properties: "angle"; to: 100}
    5. }
    6. }
    To copy to clipboard, switch view to plain text mode 


    this is code where a ball falls at mouseclick.
    i want to rotate and bounce the ball when it places in a grid . I used the above code but it does not work for me. Can any one help me in this?

  2. #2
    Join Date
    Oct 2010
    Location
    India
    Posts
    12
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: qml animation

    Try
    NumberAnimation on rotation{to: 360; duration:200}
    . If you are trying to create a game, then try QML version of Box2D. It is available in GIT.

  3. The following user says thank you to raja26 for this useful post:

    vinayaka (21st September 2011)

  4. #3
    Join Date
    May 2011
    Posts
    120
    Thanks
    33
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qml animation

    I have a Play button .I would like to do a bezier curve animation to the button.
    IS this code enough to do the animation.
    Qt Code:
    1. Path {
    2. startX: 20; startY: 0
    3. PathCubic {
    4. x: 180; y: 0
    5. control1X: -10; control1Y: 90
    6. control2X: 210; control2Y: 90
    7. }
    8. }
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. QML Animation
    By ujwala in forum Qt Quick
    Replies: 3
    Last Post: 11th August 2011, 09:14
  2. Animation performance
    By liran ritkop in forum Qt Programming
    Replies: 0
    Last Post: 13th December 2010, 16:44
  3. Problem With Animation
    By A.H.M. Mahfuzur Rahman in forum Qt Programming
    Replies: 2
    Last Post: 21st July 2009, 07:23
  4. Animation in Qt
    By A.H.M. Mahfuzur Rahman in forum Qt Programming
    Replies: 3
    Last Post: 25th June 2009, 08:05
  5. Animation in Qt
    By yogesh884 in forum Qt Programming
    Replies: 3
    Last Post: 29th January 2009, 10:56

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.