Results 1 to 4 of 4

Thread: Animation in Qt

  1. #1
    Join Date
    Jun 2009
    Posts
    29
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Animation in Qt

    I want to add some animation in the game I am developing. It has stones in every cup. When a player's turn occurs, the cups that is valid for him to play, should glow. How can I do this using Qt?

    Thanks in advance.
    Mahfuz

  2. #2
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Animation in Qt

    You can use QTimer::singleShot(...)

  3. #3
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Animation in Qt

    When a player's turn occurs, the cups that is valid for him to play, should glow.
    For that you could simply change the pixmap of the cup with a glowing pixmap. Also if you are comfortable with QPainter and pixmaps, you could add glow to the pixmap yourself. You can get some idea from here .

  4. #4
    Join Date
    May 2009
    Posts
    62
    Thanks
    2
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Animation in Qt

    Have a look at the Qt Animation Framework.

Similar Threads

  1. Animation and QGraphics
    By PrimeCP in forum Qt Programming
    Replies: 2
    Last Post: 7th May 2009, 00:31
  2. Animation in Qt
    By yogesh884 in forum Qt Programming
    Replies: 3
    Last Post: 29th January 2009, 09:56
  3. QGraphicsView animation issues?
    By m41n1 in forum Qt Programming
    Replies: 2
    Last Post: 6th June 2008, 07:48
  4. Animation while connecting on a tcpsocket
    By baray98 in forum Qt Programming
    Replies: 1
    Last Post: 26th December 2007, 10:34
  5. Replies: 1
    Last Post: 30th November 2007, 10:03

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.