Hello.
I have a couple of problems with QDockWidgets.
1) Using a UI designed with Qt Designer, in my test program I can't resize a particular docked dockwidget beyond a certain amount, like I have reached its "minimum width" value.
The dock widget is empty, it has no content. When I change the "minimum width" value to something like 10px through Designer and manually resize the dock widget, it is still bound by a minimum value which is 79px -- the dock widget is still limited by this arbitrary value despite having no content.
How can I set a minimum width \ height for my dock widgets and have they respect this?
2) I'd like to have a 'dynamic layout' in a dock widget. I designed it vertically like the following, and I'd like for the content to be arranged horizontally when it's docked at the top or bottom of the main window:
http://s23.postimg.org/5z6gag361/QDockwidget_layout.png
Those "cells" are tool buttons, so this dock widget looks like a tool bar -- I don't want to use an actual tool bar because a tool bar has limited dock areas and is always at the edge of the main window, whereas a dock widget can be nested and tabbed with the other dock widgets in many more interesting ways.
The layouts offered in Designer seem to only allow one fixed direction at a time, so if I relocate that vertical dock widget to the top or bottom areas, the tool buttons are still vertical instead of being arranged horizontally.
Is there a layout that changes depending on the area that the dock widget is docked? It's especially important that this layout works with that "blue preview" region that is displayed when you're about to drop a dock widget on a new area. If this layout change is done manually through code, the blue preview region would not reflect the end result of the dock widget, as far as I know, as it would show the preview of dropping the dock widget with the old layout instead of the new layout that is enacted manually by code.
Added after 1 7 minutes:
After some more experimentation, regarding #1, the arbitrary size seems to be imposed by the dock widget title bar.
If I try to resize a dock widget to make the title bar have less than 79px width, it stops. Is there a way to remove this constraint?