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
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
You can use QTimer::singleShot(...)
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 .When a player's turn occurs, the cups that is valid for him to play, should glow.
Have a look at the Qt Animation Framework.
Bookmarks