Results 1 to 19 of 19

Thread: How to create a slide-out window ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    519
    Thanks
    13
    Thanked 77 Times in 75 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to create a slide-out window ?

    Hi, try
    Qt Code:
    1. QRect startRect (-420, 0, 500, 300)
    To copy to clipboard, switch view to plain text mode 
    The widget should then move with fixed size and not expand from zero size.

    Ginsengelf

    edit: ah, did not read correctly: this will not fly-in from x=80.
    Last edited by Ginsengelf; 6th August 2010 at 11:08. Reason: updated contents

  2. #2
    Join Date
    May 2010
    Posts
    46
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Exclamation Re: How to create a slide-out window ?

    I tried giving a negative x value only to find a displeasing effect ... any other way to do this ?

  3. #3
    Join Date
    May 2010
    Posts
    46
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Exclamation Re: How to create a slide-out window ?

    It should be like in this page -

    http://www.building58.com/examples/tabSlideOut.html

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to create a slide-out window ?

    Your examlpe could be achieved with the solution Ginsengelf. Or you have to set a mask to your widget and animate that.

  5. #5
    Join Date
    May 2010
    Posts
    46
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Exclamation Re: How to create a slide-out window ?

    I tried out the solution with starting rectangle QRect startRect( -420,0,500,300 ). Sure this works fine, but I would like how to set the mask so that the widget is visible only after its x >= 80

  6. #6
    Join Date
    May 2010
    Posts
    46
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Exclamation Re: How to create a slide-out window ?

    I was able to manage masking a particular region of the widget using setMask(). I have a small query regrading this. I want the masked region to remian valid even after the slide -out window is translated ( or moved ). How do I ensure this ?

Similar Threads

  1. Create a QWidget as child of a Win32 window
    By BenPa in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 29th March 2011, 14:35
  2. Replies: 9
    Last Post: 16th May 2010, 16:21
  3. how to create a pop up window
    By wagmare in forum Newbie
    Replies: 2
    Last Post: 17th January 2009, 07:17
  4. Slide Up Window (Messenger Style)
    By December in forum Qt Programming
    Replies: 3
    Last Post: 13th February 2007, 16:01
  5. slide show
    By jeetu_happy in forum Qt Programming
    Replies: 3
    Last Post: 18th January 2007, 12:21

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.