Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Animated icons

    QML and Qt Quick
    qml icon animation
    4
    6
    661
    Loading More Posts
    • 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
      0...-5 last edited by

      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 Reply Quote 0
      • Yunus
        Yunus last edited by

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

        1 Reply Last reply Reply Quote 0
        • 0
          0...-5 last edited by 0...-5

          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 Reply Quote 0
          • IntruderExcluder
            IntruderExcluder last edited by

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

            0 1 Reply Last reply Reply Quote 0
            • 0
              0...-5 @IntruderExcluder last edited by

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

              1 Reply Last reply Reply Quote 0
              • M
                MajidKamali last edited by

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

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post