Resize all components in a dialog
I developed one GUI to execute different task, it contains Listbox, LineEdit, Lebel, checkbox, dropdown etc. It may be run in different resolution monitor, I want to make my dialog such a way that, when I resize dialog then internal components will automatically resize. and internal text also shown properly.
I will work Qt designer with Rhapsody
Re: Resize all components in a dialog
You should set the size policies to expanding on the widgets you wish to expand.
Attach the UI if possible.
1 Attachment(s)
Re: Resize all components in a dialog
Now I just attach a testing ui file, I expect my given components will be same ratio size when I will resize the dialog
Re: Resize all components in a dialog
You'll need to apply a layout. Unselect child widgets, and select "Layout in a Grid" (in toolbar, Form-menu or context-menu).
Re: Resize all components in a dialog
If I make Grid layout then all of the child , then all of the component become same size, in my previous post I attach a ui file, in that file you can see, first row's ListBoxs are different shape, my intensition is that if I resize then child components also resize in same ratio. like 20%, 40%, 30% of the dialog width.
Re: Resize all components in a dialog
Adjust each widgets' sizePolicy-property. Notice horizontal and vertical stretch factors.