QAnimationProperty And Nokia N8
-
Hello all,
I want to animate widgets using QAnimationProperty class which is very easy to use. I am trying the following code:
Code:
@
QPropertyAnimation* sampleAnimation = new QPropertyAnimation(myWidget,"geometry");
sampleAnimation->setDuration(300);
sampleAnimation->setStartValue(QRect(0,0,width(),height()));
sampleAnimation->setEndValue(QRect(0-400,0,width(),height()));
sampleAnimation->setEasingCurve(QEasingCurve::Linear);
sampleAnimation->start();
@i first tested this on my Nokia X6 it was very fast and was what i needed and then tried on Nokia N8 to my surprise for the later device the animation was very slow and after two three times of continuous usage the animation was not at all working.
Do i need to do something special for this?? Please help me to understand whats happening wrong??
Regards,
[EDIT: code formatting, Volker]
-