montylee
20th November 2009, 08:41
I have a QTabWidget with tabs which are created and removed dynamically depending upon what option user selects (see attached image tabs.jpg). Now, whenever a new tab is added, an animation needs to be shown. Here are the animation details:
When a new tab is added, the text of the previous tab disappears and the new tab slides out from left to right. After that the previous tab only contains the image without any text (see attached tabs1.jpg). The newly created tab will have image as well as text.
Now, the thing i need help with is the slide part of the tab. Rest everything has no animation.
Is it possible to do it in Qt4.3 or Qt4.4? I think there's some classes like QTimeLine, QGraphicsItemAnimation etc. Also, what's Qt Animation framework (http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtanimationframework)? Is it like a separate package i have to download and build? Do i need this framework to do the above mentioned animation or can i just use the current animation classes in Qt?
When a new tab is added, the text of the previous tab disappears and the new tab slides out from left to right. After that the previous tab only contains the image without any text (see attached tabs1.jpg). The newly created tab will have image as well as text.
Now, the thing i need help with is the slide part of the tab. Rest everything has no animation.
Is it possible to do it in Qt4.3 or Qt4.4? I think there's some classes like QTimeLine, QGraphicsItemAnimation etc. Also, what's Qt Animation framework (http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtanimationframework)? Is it like a separate package i have to download and build? Do i need this framework to do the above mentioned animation or can i just use the current animation classes in Qt?