Results 1 to 4 of 4

Thread: Slide Up Window (Messenger Style)

  1. #1
    Join Date
    Sep 2006
    Posts
    68
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Slide Up Window (Messenger Style)

    Hi all,

    I need to make a slide-up window (in the right bottom corner of the screen, just like MSN Messenger does when someone sends you a message)..

    Can anyone point me in the right direction.. I was thinking of using a QDialog, but after reading all the docs on that, I'm not sure it's the best approach..

    Any ideas?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Slide Up Window (Messenger Style)

    Use a borderless QWidget together with a QTimer or QTimeLine (Qt4 only) to perform the animation.

  3. #3
    Join Date
    Sep 2006
    Posts
    68
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Slide Up Window (Messenger Style)

    Thanks, trying that now.. but ran into another problem! How do I find the width / height of the screen my program is running in? I am looking at QScreen.. is that the right way to go?

    Thanks for your help

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Slide Up Window (Messenger Style)

    Quote Originally Posted by December View Post
    I am looking at QScreen.. is that the right way to go?
    No, it's QDesktopWidget what you're after...

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

    December (15th February 2007)

Similar Threads

  1. move parent window to the front.
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2007, 09:41
  2. Window style
    By almost in forum Qt Programming
    Replies: 1
    Last Post: 18th September 2006, 06:40
  3. cannot make a main window modal
    By Dark_Tower in forum Qt Programming
    Replies: 12
    Last Post: 23rd March 2006, 11:21

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.