Results 1 to 7 of 7

Thread: How to show/hide a whole docking area?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: How to show/hide a whole docking area?

    One other option is that you could use QMainWindow functions

    QMainWindow::saveState()
    QMainWindow::removeDockWidget() // remove all
    ...// Now central widget uses all the space
    QMainWindow::addDockWidget() // Add them back
    QMainWindow::restoreState()
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  2. #2
    Join Date
    Mar 2010
    Posts
    319
    Thanks
    1
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to show/hide a whole docking area?

    Hmm... not sure that I like that solution, sorry. I mean that I have some menu items that I use to show/hide some dockable widgets, so that I get the feeling that it would mess everything up. No, I just want to be able to show/hide the docking area, not its docked widgets.

Similar Threads

  1. how to show an app if it manually hide
    By jthacker in forum Qt Programming
    Replies: 1
    Last Post: 26th March 2010, 13:02
  2. Replies: 5
    Last Post: 19th March 2010, 05:33
  3. QAxWidget hide other widgets in it's area
    By sprnshld in forum Qt Programming
    Replies: 1
    Last Post: 27th July 2008, 15:56
  4. Show or hide a form
    By Gayathri in forum Newbie
    Replies: 11
    Last Post: 17th November 2006, 12:39
  5. Replies: 6
    Last Post: 18th August 2006, 17:50

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.