I am using S60 5th edition and Qt 4.6.0 for my project. I am trying to animate a window launch like the way it appears on iPhone. The animation seems to work fine on desktop but it is not smooth on device(N97) and emulator. It leaves trails of previous frames that are painted.
Here is the code
//MyWidget inherits from QWidget, it contains a QWebView, QLabel and QPushButton arranged in
//code to layout text edit and buttons
QPropertyAnimation *animation = new QPropertyAnimation( this, "geometry");
animation->setKeyValueAt(0, QRect ( 320 ,180 , 20 ,20));
animation->setKeyValueAt(1, QRect( 10, 10, 620, 340));
connect(animation, SIGNAL(valueChanged(QVariant)), this, SLOT(update));
void MYWidget:aintEvent(QPaintEvent *pnt)
//code to draw the border using QPainter
QColor current_color = Qt::black;
painter.drawRoundedRect(QRectF(10, 10, 620 , 340, 5.0, 5.0);
i have also tried using QTimeLine to animate it. But it also has the same problem. The grow effect is not smooth and it leaves trails of previous frames.
How can i get it smooth like it is on iPhone. I have seen a video on Qt Developer Days which had the same effect i wanted but i don't know how they did it.
Any pointers on how to achieve the application\window launch effect similar to iPhone will be of great help.