S
S
Saharman2018-06-07 20:04:56
Qt
Saharman, 2018-06-07 20:04:56

How to resize Vertical Layout?

While the program is running, there is a moment when widgets of the same type are generated and added to the Vertical Layout. Unfortunately, this layout does not change its size - as it was set in Qt designer, this is how it is. How can I make it size based on how much space it's child elements take up (i.e.) when it's empty, it shouldn't take up any space. When something is added to it, it adjusts and also changes size.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacob E, 2018-06-08
@Zifix

Make a minimal project in the archive, otherwise it's hard to tell where the mistake is.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question