On 13/03/2017 17:11, Black Michael wrote:
I normally don't give up on things...but I'll be danged if I can get a GroupBox around those widgets to behave they way it works with just the widgets.

The window should shrink vertically when hidden and the expand again when shown.

It's probably my ignorance of GroupBoxes and Qt in general. But I find the lack of consistency very frustrating.
Seems to me.

#1 Cut widgets
#2 Add GroupBox
#3 Paste widgets into GroupBox

Then hide/show GroupBox just like the widgets were being done....no joy.

I wish Qt was smarter and you could just add a GroupBox around an existing set of widgets for example. Or am I missing that capability somewhere?

HI Mike,

a GroupBox is probably not what you want, they have a boundary line, they define an exclusive group of radio buttons and a title. Have you tried using a basic QWidget (Widget in Designer) as a container?

Make sure your container is controlled by a layout that allows it to shrink when hidden and don't apply any fixed size constraints. A minimum expanding policy for both vertical and horizontal should allow it to shrink. I don't recall if the layout within a QWidget (the one that will control the layout of the contained widgets) will need any tweaking but in general, don't use fixed size policies or sizes. You can delete any size or policy in Designer in the object property viewer. Anything bold has a non-default value that will not inherit from above, reset it with little red arrow on the right of the selected property unless you really need it.

73
Bill
G4WJS.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to