PDA

View Full Version : Animation in Qt



A.H.M. Mahfuzur Rahman
25th June 2009, 01:50
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

lni
25th June 2009, 05:32
You can use QTimer::singleShot(...)

aamer4yu
25th June 2009, 06:03
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 (http://labs.trolltech.com/page/Graphics/Examples/Examples2) .

shentian
25th June 2009, 08:05
Have a look at the Qt Animation Framework (http://www.qtsoftware.com/products/appdev/add-on-products/catalog/4/Utilities/qtanimationframework/).