gamecreature / QtAwesome

QtAwesome - Font Awesome for Qt Applications
Other
773 stars 147 forks source link

Support for animation #12

Closed lancevalour closed 1 year ago

lancevalour commented 8 years ago

Is there any way to make spinner spin? Font Awesome has the option to make icon animated. Thanks.

gamecreature commented 8 years ago

I really would like to support this. Problem is that as far as I know, updating a QIcon is simply by replacing it with another icon... So the animation support should happen on the control and not on the icon.

So I don't know how exactly how to fit it in this library :S

See this example: http://stackoverflow.com/questions/15374191/how-to-set-animated-icon-to-qpushbutton-in-qt5

SylvainCorlay commented 8 years ago

@gamecreature we have some support for animation in the python port. You might be interested to check it out. S.

gamecreature commented 8 years ago

Thanks @SylvainCorlay Nice solution.. I will check it out when I've got some time. Need to see how to fit this nicely in c++ ... Python is very dynamic language ;)

gamecreature commented 8 years ago

I've implemented the basics for animation. Unfortunately I Accidentally committed it to the master and pushed it :S. I've meant to implement this in a separate branch, to work out the interface.. The animation now works.. I still need to fix the following issues:

SylvainCorlay commented 8 years ago

:+1:

lancevalour commented 8 years ago

Awesome!

2015年12月8日星期二,Sylvain Corlay notifications@github.com 写道:

[image: :+1:]

— Reply to this email directly or view it on GitHub https://github.com/gamecreature/QtAwesome/issues/12#issuecomment-162785049 .