Results 1 to 1 of 1

Thread: Nested QDockWidget resize issues

  1. #1
    Join Date
    Mar 2013
    Qt products
    MacOS X Unix/X11

    Default Re: Nested QDockWidget resize issues

    I've been trying to track down this issue for a few days now, but just can't seem to pinpoint it. This particular application is all QDockWidgets with no central widget. It uses both tab and nested dock layouts.

    Qt-4.8.4 / linux

    The problem I am seeing is that when multiple dock widgets are nested within the bottom area, and you drag the horizontal splitter for the top-most dock widget in that bottom area to resize it larger, it will then be stuck at that size as the minimum height. The problem seems slightly related to this issue here although it's not about the resize happening at a different rate than the mouse.

    More detailed example about the layout:


    Each time that top-most bottom dock widget gets resized to be taller, it can no longer be resized smaller again unless it is floated out, resized freely, and unfloated. Also when this is happening, the horizontal splitter between the two nested bottom dock widgets works just fine. That is, the full height range between the two is available to be resized.

    Now the final detail about this situation is I found that when I add a QFrame as the central widget to the main window, this entire problem goes away. The bottom dock widget height does not freeze up.

    Are there any known issues related to nested dock widgets w/o a central widget, or something along these lines that would explain the behavior?

    Added after 1 48 minutes:

    I've managed to figure out some more information about this problem. It does seem to only be a problem when the dock widgets are added to multiple areas, with no central content widget. My work-around was to limit the area to just the top dock area, and then the panels nest/tabbify within that single area. Visually there is no different since it ends up being just as flexible for layout, but there is no inter-area resizing issues anymore.
    Last edited by jdisrael; 6th October 2014 at 01:33.

Similar Threads

  1. Resize a QDockWidget ? (Width)
    By Selven in forum Qt Programming
    Replies: 5
    Last Post: 29th April 2012, 14:54
  2. Issues in nested QDialog
    By Askar in forum Qt Programming
    Replies: 1
    Last Post: 30th March 2011, 13:59
  3. resize QDockWidget
    By Gh0str1d3r in forum Qt Programming
    Replies: 0
    Last Post: 27th August 2010, 12:18
  4. Qt 4.4 QDockWidget resize problem
    By MarkSutton in forum Qt Tools
    Replies: 2
    Last Post: 27th September 2008, 09:55
  5. How to get a QDockWidget to auto resize?
    By bitChanger in forum Qt Programming
    Replies: 4
    Last Post: 6th January 2006, 17:10

Tags for this Thread


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.