Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for animation #12

Closed
lancevalour opened this issue Nov 18, 2015 · 6 comments
Closed

Support for animation #12

lancevalour opened this issue Nov 18, 2015 · 6 comments
Assignees

Comments

@lancevalour
Copy link

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

@gamecreature
Copy link
Owner

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
Copy link

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

@gamecreature
Copy link
Owner

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
Copy link
Owner

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:

  • Memory management to cleanup animation objects when destroying the icon/widget
  • nicer interface the adding it to a qvariant map
  • make 2 examples, one with animation and one without

@gamecreature gamecreature self-assigned this Dec 8, 2015
@SylvainCorlay
Copy link

👍

@lancevalour
Copy link
Author

Awesome!

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

[image: 👍]


Reply to this email directly or view it on GitHub
#12 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants