[Qt-interest] How can I implement an animation effect on ARM2440?

Kermit Mei kermit.mei at gmail.com
Fri Jul 10 05:04:58 CEST 2009


Hello community!

I want to implement some animation effect on ARM2440(CPU 400 MHZ).
For example, if I change to the next page, the new widget should be
shown moving from left to right.

Now, My implementation is as this: 

1. use pixmap grab the widget which I want to show;
2. create a temp widget, and draw the pixmap on it; Here, I use the
timerEvent to draw the pixmap as if it is moved from left to right.
3. kill the timer, hide the temp widget,and show the real widget on it.

But, my manager said that it looks a little slowly. The effect is not
very well. Then how can I implement it? Are there some more highly
efficient ways? QAnimation class looks more slow than it. 

Thanks for help.

Kermit Mei




More information about the Qt-interest-old mailing list