Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Using Spacers And Layouts
can anyone just help me ....by giving an example to clear the concept of where we need to put spacers n
what all we should include in the layouts..
i have tried many combinations of putting the spacers and layout
but the buttons don't occupy the extra space when i expand it ..
Please can anyone help me to clear this concept.
Generally we need to put the controls in Vertical or horizontal or grid layout depending upon the requirement.
Then the resizing effect will be shown on the controls.
If you place spacer between controls, Controls may get resized and only the space between the controls will be changed.
So you should not put any spacer, if you want resize the controls.
Try this.
This is what I observed with dialogs developed by me. But some times layouts will act differently.
Thanks,
-Segu,
thanks for the help
thanks for the help
i tried your way and also many others.
at last i think, the buttons are resized if we include all of them in a layout
then click on the form and press layout in a grid.
this might also help others.
Regards
Anubhav Tuli
RE: thanks for the help
You are right. In other case your basic layout is not resized, so the buttons are not resized too. In this case you can resize them only if you resize their layout programatically.