The form is created in the designer. Added GridLayout to it. How to make, that at resizing of the form (for example, when it is necessary to expand) accordingly the size of GridLayout'a along with its contents also changed? It is necessary that the content fills the entire form.

    1 answer 1

    I do not know how to say, but it is necessary that the layout does not just lie on the form, and this form is given for the form. In its usual form

    this->setLayout(m_gridLayout); 

    and if in the designer - then select the form and click on "Compose the grid" (in QtCreator Ctrl + G ).

    • Thank. I somehow forgot about setLayout completely, but I didn’t know about the designer. - Alexey Kotov