Results 1 to 8 of 8

Thread: how to use kanimatedbutton?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Aug 2009
    Location
    Greece, Chania
    Posts
    63
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: how to use kanimatedbutton?

    Ok here is what I've tried.

    Qt Code:
    1. animateBut->setIcons("process-working-kde");
    2. animateBut->start();
    To copy to clipboard, switch view to plain text mode 

    Also open the file "process-working-kde.png" (it's located in /usr/share/icons/oxygen/16x16/animations) to see how the image is.
    You'll see as 1 image all the frames of the animation.
    I've also tried with .gif (no luck) and simple images that wasn't like the above image so I got 1 static icon in the button.

    I created the following image in gimp. It's 16x240 with 15 squares that is 15 16x16 frames. Used it as the above code and worked.
    Attached Images Attached Images
    Last edited by Archimedes; 24th February 2010 at 13:28.
    Misha R.evolution - High level Debugging IDE

    Programming is about 2 basic principles: KISS and RTFM!!!

  2. The following user says thank you to Archimedes for this useful post:

    ManicQin (24th February 2010)

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.