Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Animated icons

Animated icons

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmliconanimation
6 Posts 4 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 0 Offline
    0 Offline
    0...-5
    wrote on last edited by
    #1

    Is it possible to make an icon animated in QML? When I use widgets I can create a QMovie object and bind button's icon to it's current frame. Can I do something like this in QML?
    I can assign icon.source property to a gif file, but only the first frame would be seen than

    1 Reply Last reply
    0
    • YunusY Offline
      YunusY Offline
      Yunus
      wrote on last edited by
      #2

      @0-5 Hi! Did you check AnimatedImage QML type which is explained here

      1 Reply Last reply
      0
      • 0 Offline
        0 Offline
        0...-5
        wrote on last edited by 0...-5
        #3

        Hi, @Yunus !
        Yes, sure, I have googled some info about and also tried to use it. But AnimatedImage is a visual component (unlike QMovie), so I only can use it instead of ToolButton. But all I need is to get a button's look and behavior and the opportunity to change it's icon using existing gif file

        1 Reply Last reply
        0
        • IntruderExcluderI Offline
          IntruderExcluderI Offline
          IntruderExcluder
          wrote on last edited by
          #4

          You can customize contents of ToolButton and use AnimatedImage as well.

          0 1 Reply Last reply
          0
          • IntruderExcluderI IntruderExcluder

            You can customize contents of ToolButton and use AnimatedImage as well.

            0 Offline
            0 Offline
            0...-5
            wrote on last edited by
            #5

            @IntruderExcluder Can you give me a small code snippet, please?

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MajidKamali
              wrote on last edited by
              #6

              Qt lottie might be an option. That's exactly its purpose

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved