[Qt-interest] How can I implement an animation effect on ARM2440?
Eckhard Jokisch
e.jokisch at orange-moon.de
Fri Jul 10 10:35:04 CEST 2009
Hi,
I do not know much about widget handling on a screen but I would suggest using
something like
for(int x=0, x<screenwitdh; x++)
{
widget->move(int x, int y);
}
should be much faster.
Eckhard
On Friday 10 July 2009 05:04:58 Kermit Mei wrote:
> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list