Results 1 to 5 of 5

Thread: Dock Nesting Problem

  1. #1
    Join Date
    Jul 2008
    Posts
    11
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Dock Nesting Problem

    The following image shows what my app looks like on startup.
    Nested QDockWidgets 01.jpg

    This image shows what I want it to look like at startup.
    Nested QDockWidgets 02.jpg

    AllowNestedDocks is enabled in the MainWindow from the Designer. I accomplish the above image by draging one of the docks to the proper position.

    I tried the suggestion I found here with no success.

    Thanks in advance.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Dock Nesting Problem

    Have you tried the version of QMainWindow::addDockWidget() which takes a direction?
    J-P Nurmi

  3. #3
    Join Date
    Jul 2008
    Posts
    11
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Dock Nesting Problem

    I just added "Qt::Horizontal" to both addDockWidget calls but I get the same results.

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Dock Nesting Problem

    I would have tried "vertical" myself.
    J-P Nurmi

  5. The following user says thank you to jpn for this useful post:

    blaylockr (14th August 2008)

  6. #5
    Join Date
    Jul 2008
    Posts
    11
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Dock Nesting Problem

    That worked!

    Thanks

Similar Threads

  1. Replies: 1
    Last Post: 10th August 2008, 18:55
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  3. QDockWidget nesting problem..
    By aamer4yu in forum Qt Programming
    Replies: 6
    Last Post: 31st January 2007, 12:23
  4. Dock widgets PROBLEM
    By L1L0 in forum Qt Programming
    Replies: 8
    Last Post: 7th April 2006, 18:29
  5. Replies: 16
    Last Post: 7th March 2006, 15: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.