In my project, I have a Group box with a few elements that may need to be hidden, with other elements above and below. If I hide those elements with setHidden(true), the elements are hidden but that leaves a large space in between the other elements.
How would I be able to compact the group box after hiding those elements, so there isn't such a big space?