Results 1 to 5 of 5

Thread: animate a window

  1. #1
    Join Date
    May 2006
    Posts
    32
    Thanks
    15
    Thanked 2 Times in 2 Posts

    Cool animate a window

    Hi,guys.
    I want to animate a window. Just like the window slice form left to right.
    When using windows api
    AnimateWindow(,,,) without implementing WM_PAINTCLIENT message,
    the window is black while Animating(and is WM_PAINTCLIENT the reason?? ).
    And this solution can not be perfomed on other platforms.


    Any direct solution in QT3/4 please.

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: animate a window

    I don't think there is a direct solution but you can use QTimer and move your window from left to right on time out.

  3. #3
    Join Date
    Jun 2006
    Posts
    11
    Thanked 4 Times in 4 Posts

    Default Re: animate a window

    I hope you've got a very good reason for wanting to animate the window, most users will probably hate it it their windows moves around without them doing anyting.

  4. #4
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: animate a window

    You might want to have a look at this article:

    http://doc.trolltech.com/qq/qq16-fader.html
    It's nice to be important but it's more important to be nice.

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

    iGoo (27th June 2006)

  6. #5
    Join Date
    May 2006
    Posts
    32
    Thanks
    15
    Thanked 2 Times in 2 Posts

    Cool Re: animate a window

    You might want to have a look at this article:

    http://doc.trolltech.com/qq/qq16-fader.html
    yeah.

    I find it hard to newbie to try something with tricks or something advanced.

    And of course I learn.

    Thanks very much.

Similar Threads

  1. Restore the size of the window after minimize
    By SkripT in forum Qt Programming
    Replies: 10
    Last Post: 22nd September 2016, 17:23
  2. Move window in Clone Mode
    By ultrabrite in forum Qt Programming
    Replies: 1
    Last Post: 14th June 2006, 19:22
  3. window stacking order
    By nupul in forum Newbie
    Replies: 4
    Last Post: 10th April 2006, 11:16
  4. cannot make a main window modal
    By Dark_Tower in forum Qt Programming
    Replies: 12
    Last Post: 23rd March 2006, 11:21
  5. Main window
    By Michiel in forum Qt Tools
    Replies: 1
    Last Post: 21st March 2006, 00:54

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.