QDockWidget oddness
-
I had reports of problems with my application on systems with smallish displays, so I installed it on an old laptop with 1280*800 screen.
If I open the application and maximise it I see:
If I then try to drag the sizing handle of the lower dock widget upward, it immediately changes to this:
This is the same on both 6.5.1 and 6.8.0
I'm prepared for this to be my error but for the life of me I can't see what's wrong with my .ui files.
Another oddness is that Processing group box is in the left panel (dock widget) is overlaying the one above it, and I can't provoke that on my development system.
David
-
I have worked out what is happening and it isn't pretty. The main client area of the application frame window is a QStackedWIdget. That holds the client area that you see below which has an effective minimum height of about 350 pixels. It also has another dialog whose minimum size is almost 700 pixels high and that's causing all the problems. Even though it is hidden by the stacked widget, it forces the size of the stacked widget.
Now to work out a way to make it smaller than it currently is when it isn't being shown (maybe set the minimum size of the sub-windows to 0 when it's not visible.
-
Hi,
You might want to use a QScrollArea to ensure that the real size of the your client area widgets do not break your application design.
-
I'd keep the scroll area in mind since you may have at some point another bigger widget that might break your design again.
-
P Perdrix referenced this topic on