PDA

View Full Version : is it possible to animate sliding widgets on show/hide



discostu
4th March 2007, 05:44
Hi, I was wondering if there is a nice clean way to have a widget slide in/out when you show/hide it. Some sort of animated transition. I haven't been able to find anything through searching so far.

Thanks.

e8johan
4th March 2007, 08:58
The QTimeLine class is used for this. You will still have to add code to perform the actual animation, but it is a start.

fullmetalcoder
4th March 2007, 08:59
Hi, I was wondering if there is a nice clean way to have a widget slide in/out when you show/hide it. Some sort of animated transition. I haven't been able to find anything through searching so far.
The only limits to graphical programming are :

your imagination
the power of your computerI'm pretty sure you can craft what you want but I doubt someone can do it for you without some more informations... I suggest you to have a look at Qt sources and get some inspiration from the animated showing/hiding of dock widgets (since Qt 4.2). I think you should find this code in a file named qmainwindow.cpp or qmainwindowlayout.cpp