[Qt-interest] Animated show/hide transitions for QFrame
Dave Smith
dave at thesmithfam.org
Tue Jul 28 19:57:17 CEST 2009
I have a few QFrames laid out vertically. Within each QFrames are
various unique widgets laid out in a grid. Between the QFrames I have
placed buttons for showing and hiding them individually. When the user
clicks one of the buttons, I call show() on the QFrame below it and it
appears, moving the QFrames and buttons below it downward.
It works great, but it's so 1999.
It's 2009 so I want to animate it.
Rather than having each QFrame appear immediately on clicking the
button, I want it to "grow" into place, optionally fading from
transparent to opaque as it grows to its full size. This would be much
like what happens when you drag QToolbars around and spots animate open
for you to drop them in.
Any ideas how to accomplish this tastefully? (i.e., reuse code from Qt
as much as possible)
Thanks in advance!
--Dave
More information about the Qt-interest-old
mailing list