Results 1 to 5 of 5

Thread: animating a QGraphicsObject

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: animating a QGraphicsObject

    Quote Originally Posted by d_stranz View Post
    So I guess the default easing curve for moving from point A to point B is linear?
    The default easing curve is always linear. What's important is that QVariantAnimation knows how to interpolate a QPoint.

    I don't see where QAbstractAnimation or its derived classes offer any control over the step size (time increment),
    They don't.

    Is there a way to specify, f.e. that you want an animation that lasts for 5 seconds, and requires 10 steps?
    No.
    (I mean, maybe for some silly reason, you might want a jerky animation. Maybe you are trying to simulate an old silent movie).
    In that case use a simple QTimer. Alternatively you might implement a custom easing curve but I don't think it is worth it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. The following user says thank you to wysota for this useful post:

    d_stranz (7th January 2013)

Similar Threads

  1. QGraphicsObject Performance Issue
    By alizadeh91 in forum Qt Programming
    Replies: 0
    Last Post: 13th March 2012, 17:41
  2. QGraphicsObject color change animation
    By mvbhavsar in forum Newbie
    Replies: 8
    Last Post: 30th August 2011, 13:34
  3. How to make an QGraphicsObject animation?
    By luisvaldes88 in forum Qt Programming
    Replies: 2
    Last Post: 25th August 2011, 18:01
  4. protected QGraphicsObject
    By stefan in forum Qt Programming
    Replies: 6
    Last Post: 19th August 2011, 17:04
  5. Replies: 1
    Last Post: 24th October 2010, 02:40

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.