I would like to set up the layout for a widget directly, as I didn’t find a way to do it in the UI editor, I often turns to:
ui->tab->setLayout (ui->verticalLayout)
But that looks stupid to me.
Is there anyway to do that without extra coding?

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Select the widget you want in your editor and choose the layout you want to use in the menu :
There is no need to add a layout inside a widget in the editor.