PDA

View Full Version : Change shape of window / animate window



sabeesh
31st October 2007, 05:01
Hi,
I have a window in my program and a command button in that window. I need to create a window when I click on that button. I do that, My probs is that... I need to animate the window, when it appear on the screen, any animation, like, display the new window from the bottom of main window or appear the new window in any other style.
I need to change the shape of window.
How can i do this. Please help me...........

pherthyl
31st October 2007, 06:10
Well you can always use a QTimeLine and call resize(w, h) on the window. Might not be pretty though.

kernel_panic
31st October 2007, 08:14
for setting the shape use QWidget::setMask();
you could fade in the widget . Use QWidget::setOpacity() for this.

jpn
31st October 2007, 08:16
Not that I encourage using private parts of Qt, but notice this wiki article: Fade and scroll effects (http://wiki.qtcentre.org/index.php?title=Fade_and_scroll_effects).