Now I just attach a testing ui file, I expect my given components will be same ratio size when I will resize the 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
You'll need to apply a layout. Unselect child widgets, and select "Layout in a Grid" (in toolbar, Form-menu or context-menu).
J-P Nurmi
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.
Adjust each widgets' sizePolicy-property. Notice horizontal and vertical stretch factors.
J-P Nurmi
bdQtdev (10th January 2008)
Bookmarks