Results 1 to 2 of 2

Thread: Vertical and horizontal QDockWidget, priority?

  1. #1
    Join Date
    Aug 2006
    Location
    The Netherlands
    Posts
    64
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Vertical and horizontal QDockWidget, priority?

    I have two QDockWidgets in a QMainWindow. One horizontal and one vertical.
    The Horizontal QDockWidget is created first, for technical reasons, I can not change the order in the creationprocess.

    The problem is, that the width of the horizontal QDockWidget equals the width of the QMainWindow and the height of the vertical QDockWidget equals the height of the QMainWindow minus the height of the horizontal QDockWidget.

    What I want is the opposite, that the width of the horizontal QDockWidget equals the width of the QMainWindow minus the width of the vertical QDockWidget and the height of the vertical QDockWidget equals the height of the QMainWindow.

    How do I do this?

  2. #2
    Join Date
    Aug 2006
    Location
    The Netherlands
    Posts
    64
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Vertical and horizontal QDockWidget, priority?

    I found the solution in the manual:

    Qt Code:
    1. void QMainWindow::setCorner ( Qt::Corner corner, Qt::DockWidgetArea area )
    To copy to clipboard, switch view to plain text mode 


    Sets the given dock widget area to occupy the specified corner.

    See also corner().

Similar Threads

  1. Resize a vertical an horizontal scrollbar.
    By IRON_MAN in forum Qt Programming
    Replies: 3
    Last Post: 19th April 2010, 16:45
  2. How to get vertical/horizontal zoom box?
    By knicewar in forum Qwt
    Replies: 3
    Last Post: 23rd March 2010, 05:09
  3. QGraphicsItem Horizontal/Vertical move only
    By prashant in forum Qt Programming
    Replies: 2
    Last Post: 9th November 2009, 10:02
  4. Vertical scroll bar, but resizable horizontal content
    By minimoog in forum Qt Programming
    Replies: 0
    Last Post: 14th January 2009, 21:51
  5. Replies: 4
    Last Post: 27th September 2006, 14:34

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.