Answer the question
In order to leave comments, you need to log in
How in QT to make the components increase along with the window increase proportionally?
I want to make it so that when you click on the "square" - the window spread, all components on the window would also increase in size, but also so that it is proportional
Answer the question
In order to leave comments, you need to log in
As already written, you can use layouts (layout), arrange elements horizontally / vertically / grid; there is also such a thing as layoutStretch, I haven't used it myself, but according to the docs - Stretch factors are used to change how much space widgets are given in proportion to one another.; also to change/stay the size of the widget, use sizePolicy (horizontal/vertical).
At worst, you can set new widget sizes on the form by overriding resizeEvent().
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question