Which layout is the most suitable for this situation?
-
i want to add 1 control in the 1st row, and 3 controls in the 2nd row, and 5 controls in the 3rd row...
so which layout is the most suitable for this situation? -
You will require multiple layouts to achieve this, what you will need to create is one vertical layout and 2 horizontal layouts one for each row that contains more than one control. Then set the horizontal layouts to the vertical layout and ur done.
-
In addition to ion_knight post, you can use QGridLayout with appropriate spanning. This will be more efficient as well.
-
In addition to ion_knight and Dheerendra posts.
Use horizontal and or vertical "spacers":http://doc.qt.digia.com/2.3/designer/chap4_2.html if you need to arrange the widgets inside the layouts. -
thank you ,
can i add spacers on QGridLayout ?
and can i add spacers for QGraphicsLayout?