Results 1 to 4 of 4

Thread: Change shape of window / animate window

  1. #1
    Join Date
    Jul 2007
    Posts
    166
    Thanks
    25
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Change shape of window / animate window

    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...........

  2. #2
    Join Date
    Aug 2006
    Posts
    250
    Thanks
    19
    Thanked 49 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Change shape of window / animate window

    Well you can always use a QTimeLine and call resize(w, h) on the window. Might not be pretty though.

  3. #3
    Join Date
    Jan 2007
    Posts
    177
    Thanks
    8
    Thanked 10 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Change shape of window / animate window

    for setting the shape use QWidget::setMask();
    you could fade in the widget . Use QWidget::setOpacity() for this.

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,518 Times in 1,388 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Change shape of window / animate window

    Not that I encourage using private parts of Qt, but notice this wiki article: Fade and scroll effects.
    J-P Nurmi

  5. The following user says thank you to jpn for this useful post:

    sabeesh (1st November 2007)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.