×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    506

    how to animate QGraphicsItemGroup ?

    Hi all

    is there is a way to animate QGraphicsItemGroup item?
    my problem is that i cant setup the item to QPropertyAnimation with setTargetObject method

    any suggestions?
    Symbian & Qt developer. http://vladest.org

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: how to animate QGraphicsItemGroup ?

    QGraphicsItemGroup is not QObject-based class and QPropertyAnimation animates properties for QObject-based classes. Additionally QGraphicsItemGroup doesn't have any properties, so what are you trying to animate?

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    506

    Re: how to animate QGraphicsItemGroup ?

    position, for example
    any other way to animate QGraphicsItemGroup ?
    Symbian & Qt developer. http://vladest.org

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: how to animate QGraphicsItemGroup ?

    Quote Originally Posted by vladest View Post
    position, for example
    any other way to animate QGraphicsItemGroup ?
    There is no position property. You need to subclass QGraphicsItemGroup and QObject, define position property in your subclass (using Q_PROPERTY) and then animate it with QPropertyAnimation.

  5. #5
    Registered User
    Join Date
    Apr 2009
    Posts
    506

    Re: how to animate QGraphicsItemGroup ?

    Exactly, what I've did already
    thanks anyway
    Symbian & Qt developer. http://vladest.org

Similar Threads

  1. How to animate a line in j2me??
    By yatibawri in forum Mobile Java General
    Replies: 3
    Last Post: 2009-12-03, 18:47
  2. Can't able to animate .gif file using to iTexturemamanger
    By sabera_mina in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2009-08-05, 13:16
  3. How to use append for center, gif to be animate.
    By shamun.toha in forum Mobile Java General
    Replies: 2
    Last Post: 2008-07-02, 12:06
  4. Animate icons using sprites?
    By ninku6a in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-04-12, 23:17

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×