Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.
Enabling Qt Animation Framework in an application
S60 3rd Edition, FP2
S60 5th Edition
S60 5th Edition
S60 3rd Edition FP2
S60 3rd Edition FP1
This series of snippets demonstrates how to implement nice animation effects into your Qt UI application. Qt 4.6 has Qt Animation Framework as a built-in feature. Documentation can be found here: 
This snippet is an example of an application that can show animation effects. Animations can be executed in the Qt Graphics View Framework: 
Full example code can be found here: File:Animation fw.zip
Qt 4.6 has been installed.
The Qt Animation Framework supports the animation of graphics items derived from QObject and QGraphicsItem or from QGraphicsObject. Graphics items can be placed into QGraphicsScene, so first we create it as the QMainWindow central widget.
// Create QGraphicsScene and QGraphicsView
m_scene = new QGraphicsScene(this);
m_view = new QGraphicsView(m_scene,this);
// Create PictureItem for the animation
m_item = new PictureItem(pixmap.size(),pixmap,this);
// Add PictureItem to center of the scene
// Set QGraphicsView as central widget
The application has QGraphicsScene and QGraphicsView ready to show some animations.