Results 1 to 8 of 8

Thread: how to use kanimatedbutton?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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)

  3. #2
    Join Date
    May 2009
    Posts
    11
    Thanks
    3

    Default Re: how to use kanimatedbutton?

    Wow great, that takes me one step forward towards the solution

    I started reading the KDE basics maybe I'll find how to set the path and connect it to a resource.

    Thanks!

  4. #3
    Join Date
    Jul 2017
    Posts
    1
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default Re: how to use kanimatedbutton?

    All you need to do is pass along a list of icon names and their size and everything else is taken care of." ??

  5. #4
    Join Date
    Nov 2014
    Posts
    32
    Thanked 1 Time in 1 Post
    Qt products
    Platforms
    Windows

    Default Re: how to use kanimatedbutton?

    You can find information about your question at: https://api.kde.org/4.x-api/kdelibs-...tedButton.html

  6. #5
    Join Date
    Apr 2020
    Posts
    1
    Qt products
    Qt/Embedded
    Platforms
    Windows

    Default Re: how to use kanimatedbutton?

    Just to inform: if you change the iconSize() via setIconSize(), you will need to call updateIcons() also to force reloading of the correct icon size.

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.