Results 1 to 2 of 2

Thread: How To Center Dock Widget?

  1. #1
    Join Date
    Oct 2012
    Posts
    32
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question How To Center Dock Widget?

    Hello again,

    I currently have 2 dock widgets in my ui. The first is docked to the left and the second to the right. I seem to have a problem adding a third dock at the bottom of the ui in between docks 1 and 2.

    The attached image has a rough layout of what the design currently is and what i am trying to accomplish. The blue area is where i would like my third dock to be - How do i go about doing this?
    Layout.png

    Thanks,
    Matt

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How To Center Dock Widget?

    Set the left and right dock widgets to occupy the bottom-left and bottom-right corners areas respectively: QMainWindow::setCorner(). Then place the new dock widget in the bottom dock area beneath the central widget.

Similar Threads

  1. create dock widget from some other widget
    By Onanymous in forum Qt Programming
    Replies: 1
    Last Post: 16th December 2011, 15:22
  2. Creating an OSX-like dock widget
    By k2 in forum Qt Programming
    Replies: 0
    Last Post: 1st June 2009, 22:16
  3. Dock Widget problems
    By dbrmik in forum Newbie
    Replies: 5
    Last Post: 17th April 2009, 12:39
  4. sliding dock widget
    By manishkyl in forum Qt Programming
    Replies: 0
    Last Post: 28th July 2008, 14:04
  5. Pin/Unpin Dock Widget
    By charlesD in forum Newbie
    Replies: 1
    Last Post: 21st June 2006, 06:57

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.