Results 1 to 3 of 3

Thread: QGraphicsView animation issues?

  1. #1
    Join Date
    Mar 2008
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QGraphicsView animation issues?

    Hi mates,

    I am using QGraphicsView to show a couple of items. Geometric figures by using addLine...and so on. I use a mathematical constructive method to create these figures and then I show them. Is it possible to animate the creation? I mean, add a line, and then show it, then next one...step by step? It would be like an animation of the contraction of the geometric figure. The thing is when you show the windows, it shows it when everything is "painted". Is there to show the window before it ends painting?

    Thanks in advance

  2. #2
    Join Date
    Jan 2007
    Posts
    92
    Thanks
    14
    Thanked 1 Time in 1 Post

    Default Re: QGraphicsView animation issues?

    Did u take a look at QGraphicsItemAnimation? You can use QTimeLine with this class to set up an time line for moving or displaying your item. There is method setTimeLine( ) of QGraphicsItemAnimation where you can set this.

  3. #3
    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: QGraphicsView animation issues?

    Here I'd suggest using a plain QTimer and in the timeout slot adding consecutive items to the scene.

Similar Threads

  1. Using QGraphicsView as a Splash Screen (repaint issues)
    By chezifresh in forum Qt Programming
    Replies: 3
    Last Post: 4th June 2008, 21:22
  2. Speed, transparency, and drop issues with QGraphicsView
    By jefferai in forum Qt Programming
    Replies: 16
    Last Post: 30th June 2007, 16:14

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.