PDA

View Full Version : Animations



hema
8th July 2011, 07:01
hi,

i want to do animations(like sitting,walking,running..........) to static images.
is it possible?

if yes?how?

thanks in advance.
hema.

Santosh Reddy
8th July 2011, 07:42
Yes, it is possible :)

Start from here http://doc.qt.nokia.com/4.7/animation-stickman.html

hema
11th July 2011, 12:05
hi sir,
thank u for valuable information.
but i have a doubt int that,
QFile file(animationFileName);
if (file.open(QIODevice::ReadOnly))
animation.load(&file);
}

const int frameCount = animation.totalFrames();
QState *previousState = 0;
in this code,filename is "dead" with "file" extension.what does this indicates? animation.load(&file) what it returns?how it counts totalframes?
can u explain this?