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.
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.
The QTimeLine class is used for this. You will still have to add code to perform the actual animation, but it is a start.
The only limits to graphical programming are :
I'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
- your imagination
- the power of your computer
Current Qt projects : QCodeEdit, RotiDeCode
Bookmarks