Results 1 to 3 of 3

Thread: QDockWidget unusual layout

  1. #1
    Join Date
    Oct 2014
    Posts
    81
    Thanks
    20
    Thanked 9 Times in 9 Posts
    Qt products
    Qt5
    Platforms
    Windows
    Wiki edits
    7

    Default QDockWidget unusual layout

    Hello.
    I've been trying to get the following layout with QDockWidgets in QtDesigner:



    Widget number 1 is a toolbar, and 2 and 3 are standard dock widgets. The white space can be the central widget, but it's unnocupied for the moment.
    When I try to insert widget number 3, it starts from the top and goes down until it meets widget number 2. The total height of widget number 3 is being limited by widget 2.
    In my orignal layout, however, I want widget number 3 to be inserted and go all the way down to the bottom of the window, making widget 2 recede horizontally to give it space. So when widget 3 is inserted, widget 2 would diminish in width. The final layout would be like illustrated.
    Is it possible to achieve this?

  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: QDockWidget unusual layout


  3. The following user says thank you to ChrisW67 for this useful post:

    Kryzon (24th October 2014)

  4. #3
    Join Date
    Oct 2014
    Posts
    81
    Thanks
    20
    Thanked 9 Times in 9 Posts
    Qt products
    Qt5
    Platforms
    Windows
    Wiki edits
    7

    Default Re: QDockWidget unusual layout

    Thank you for the keyword, ChrisW67.
    With that I could find this article that has an example:
    http://www.informit.com/articles/art...05543&seqNum=5

Similar Threads

  1. Replies: 2
    Last Post: 6th September 2013, 06:13
  2. QDockWidget layout
    By m.p in forum Qt Programming
    Replies: 1
    Last Post: 7th March 2013, 09:21
  3. Mainwindow layout problem with QDockWidget.
    By pastispast in forum Qt Programming
    Replies: 3
    Last Post: 13th January 2011, 07:04
  4. Unusual TableView
    By giker in forum Qt Programming
    Replies: 0
    Last Post: 6th January 2011, 14:10
  5. Getting some unusual character
    By Abc in forum Qt Programming
    Replies: 2
    Last Post: 21st August 2008, 07:28

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.