Animating "any" widget?!?
Qt4 is equipped with a powerful paint engine. Now can widgets like Buttons, Custom widgets and as well the whole widget window be animated??
eg:
1. Button rotating when clicked,
2. Widget's top level window shearing on minimization etc...
What are the limitations of Animations in Qt4?
Thanks.
Nupul
Re: Animating "any" widget?!?
You could adapt some ideas from Qt sources: src/gui/widgets/qeffects.*
There isn't rotation, but fading and scrolling, though. But after understanding the principles used in QEffects (which is a private class of Qt), it shouldn't be too hard to implement a rotating effect.. ;)
Re: Animating "any" widget?!?
Quote:
Originally Posted by jpn
You could adapt some ideas from Qt sources: src/gui/widgets/qeffects.*
This path doesn't exist in my Qt installation dir and nor did I find it in the assistant!
and nor did i find any files resembling this name....could you send me a link or an attachment!
Re: Animating "any" widget?!?
Quote:
Originally Posted by nupul
This path doesn't exist in my Qt installation dir and nor did I find it in the assistant!
and nor did i find any files resembling this name....could you send me a link or an attachment!
It's a private Qt class which is not intended to be used.
Check inside the installation package
qt-x11-*-src-4.1.2.tar.gz: qt-x11-*-src-4.1.2\src\gui\widgets