Results 1 to 3 of 3

Thread: best way for a own animated loader?

  1. #1
    Join Date
    Feb 2011
    Posts
    25
    Qt products
    Qt4
    Platforms
    Windows

    Question best way for a own animated loader?

    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?)

  2. #2
    Join Date
    Jan 2012
    Location
    Argentina
    Posts
    167
    Thanks
    33
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: best way for a own animated loader?

    are you using QMovie to show the gif file?

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

    maybe adding a transparent background to your gif is just what you need...
    Last edited by KillGabio; 28th February 2012 at 19:49.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: best way for a own animated loader?

    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Animated GIF Problem
    By MSUdom5 in forum Qt Programming
    Replies: 9
    Last Post: 25th January 2016, 06:29
  2. Replies: 5
    Last Post: 3rd July 2014, 12:46
  3. Replies: 1
    Last Post: 20th February 2012, 20:44
  4. Pb with animated gif on Mac os
    By mourad in forum Qt Programming
    Replies: 0
    Last Post: 17th April 2008, 13:38
  5. animated gif's
    By :db:sStrong in forum Newbie
    Replies: 2
    Last Post: 31st May 2006, 15:22

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.