Animated icons
-
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 assignicon.source
property to a gif file, but only the first frame would be seen than -
Hi, @Yunus !
Yes, sure, I have googled some info about and also tried to use it. ButAnimatedImage
is a visual component (unlikeQMovie
), so I only can use it instead ofToolButton
. 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 -
You can customize contents of
ToolButton
and useAnimatedImage
as well. -
@IntruderExcluder Can you give me a small code snippet, please?
-
Qt lottie might be an option. That's exactly its purpose