Results 1 to 3 of 3

Thread: QGraphicsRectItem animation

  1. #1
    Join Date
    Jun 2010
    Posts
    97
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QGraphicsRectItem animation

    I am working on program where some animation is required.
    I am able to do QPropertyAnimation to QGraphicsTextItem but not other items like QGraphicsRectItem. This has forced me to create a QGraphicsObject class and override it's paint method. But now the question is now I am not able to use directly QGraphicsRectItem in my code. Any suggession how to animate QGraphicsRectItem using QPropertyAnimation.


    Thanks

    Manish

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QGraphicsRectItem animation

    Have you read the documentation about the animation framework, especially "Animations and the Graphics View Framework"? Have you subclasses the rect item and inherit QObject?

  3. #3
    Join Date
    Jun 2010
    Posts
    97
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QGraphicsRectItem animation

    Yes, able to fix problem with your suggessions.


    Thanks

    Manish

Similar Threads

  1. QGraphicsRectItem vs QGraphicsPolygonItem
    By Doru in forum Qt Programming
    Replies: 0
    Last Post: 26th January 2011, 07:12
  2. QGraphicsRectItem
    By c_srikanth1984 in forum Qt Programming
    Replies: 1
    Last Post: 29th July 2009, 09:04
  3. QGraphicsWidget vs. QGraphicsRectItem
    By Bill in forum Newbie
    Replies: 3
    Last Post: 27th July 2009, 09:02
  4. Question about QGraphicsRectItem
    By lni in forum Qt Programming
    Replies: 10
    Last Post: 28th January 2009, 21:58
  5. How can I use QGraphicsRectItem?
    By learning_qt in forum Qt Programming
    Replies: 3
    Last Post: 14th January 2009, 10:00

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
  •  
Qt is a trademark of The Qt Company.