Results 1 to 6 of 6

Thread: Auto hide option in QT

  1. #1
    Join Date
    Oct 2009
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation Auto hide option in QT

    Hi all,

    I need to implement auto hide widgets option like visual studio editor..

    Please help me how to proceed to create such control

    Thanks in advance!!

    Kishore

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Auto hide option in QT

    Please post specific questions, you don't expect us to deliver you the full implementation I hope...
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Oct 2009
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Auto hide option in QT

    Quote Originally Posted by high_flyer View Post
    Please post specific questions, you don't expect us to deliver you the full implementation I hope...
    Thanks for reply ...
    I tried with tool bar , but still i am not able to proceed.

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Auto hide option in QT

    How do you intend to show the widgets after they are hidden ?
    You can implement auto-hide with either mouseMoveEvent or focusOutEvent...

    To show the widget back, you can use mouseMoveEvent in the main class..

  5. #5
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Auto hide option in QT

    Deleted deleted
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  6. #6
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Auto hide option in QT

    When mouse leaves control set a timer. When this timer expires, use another timer to slowly move and/or resize the control. When you get focus, you can use timer to slowly move and/or resize the control back to normal size.

Similar Threads

  1. hide() and auto resizing
    By MrGarbage in forum Qt Programming
    Replies: 2
    Last Post: 25th August 2007, 09:44
  2. using the lib template dll option on *nix
    By jamadagni in forum Qt Programming
    Replies: 3
    Last Post: 19th April 2007, 13:14
  3. rtti option
    By sar_van81 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 5th January 2007, 15:10
  4. Replies: 6
    Last Post: 18th August 2006, 17:50

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.