Results 1 to 2 of 2

Thread: stretch leftmost QDockingWidget all the way to the bottom

  1. #1
    Join Date
    Jul 2012
    Posts
    244
    Thanks
    27
    Thanked 15 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default stretch leftmost QDockingWidget all the way to the bottom

    Hey,

    I am once again playing with Qt's Docking system.

    I cant seem to get the following simple scenario to work:

    1. There are two docked docking widgets, one docked at the bottom, one at the left side.
    2. I want the left-side one to stretch all the way to the bottom.


    It looks like no matter what I do, programatically or manually, the bottom docking widget always takes up all the space till the left/right edge of the QMainWindow.


    An illustration of the situation:

    https://i.imgur.com/UTVlD2d.png


    Essentially I want the green-shaded area to be covered by one docking widget.


    How can I achieve this?

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: stretch leftmost QDockingWidget all the way to the bottom

    Look at QMainWindow::setCorner(). I think it will do what you want. You may have to call it twice with two different Corner arguments if you want the left dock area to occupy the entire vertical space.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Stretch - Ough!
    By Radek in forum Newbie
    Replies: 2
    Last Post: 3rd January 2018, 08:50
  2. Stretch Last Section
    By skizzik in forum Qt Programming
    Replies: 1
    Last Post: 10th January 2011, 14:45
  3. Replies: 0
    Last Post: 10th June 2010, 23:38
  4. Replies: 7
    Last Post: 15th November 2007, 17:19
  5. stretch QTableWodgetItem
    By Shawn in forum Qt Programming
    Replies: 5
    Last Post: 5th September 2007, 09:49

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.