Animated icons
-
wrote on 25 Dec 2019, 04:57 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 assignicon.source
property to a gif file, but only the first frame would be seen than -
wrote on 25 Dec 2019, 05:31 last edited by 0...-5
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 -
wrote on 25 Dec 2019, 11:26 last edited by
You can customize contents of
ToolButton
and useAnimatedImage
as well. -
You can customize contents of
ToolButton
and useAnimatedImage
as well.wrote on 25 Dec 2019, 11:37 last edited by@IntruderExcluder Can you give me a small code snippet, please?
-
wrote on 25 Dec 2019, 18:29 last edited by
Qt lottie might be an option. That's exactly its purpose
6/6