PDA

View Full Version : best way for a own animated loader?



janton
28th February 2012, 16:27
Dear QT Support and Users,

First the story:
I have created a nice looking loader(spinner) in Photoshop and want to use this in the application.
Only problem is when I export it to .gif it doesn't have the transparent background such as a png. (i use shadows for example)
Because the loaders background changes collor i could not give it a correct background.

I read about animated png files: apng but did not find if qt supports this AND if photoshop supports this.


Well here my main question:
How do you people create animated spinners/loaders? (svg? gif? or just rotating a png?)

KillGabio
28th February 2012, 19:42
are you using QMovie to show the gif file?

take a look at this: http://www.mediacollege.com/adobe/photoshop/transparent/gif.html (http://www.mediacollege.com/adobe/photoshop/transparent/gif.html)

maybe adding a transparent background to your gif is just what you need...

wysota
28th February 2012, 19:52
Qt supports MNG (I don't know if Photoshop does but if not then there is a bunch of free tools available to convert between animation formats). However the easiest solution is to simply save your animation as a series of PNG files, one for each frame and then just replace pixmaps as you need to show next frames of the animation.