[SOLVED] How to align buttons in a layout like grid without using specific locations
-
wrote on 5 May 2014, 09:07 last edited by
Hi,
Is there a way to set buttons on to the layout depending on the parent widget size.
say, I have 10 buttons and parent widget can accommodate only 5 in one row, the rest buttons should appear in next row.
Even if I use grid layout without specifying locations it will be in a single row...
-
wrote on 5 May 2014, 09:38 last edited by
Perhaps this example will help you "Flow Layout Example...":http://qt-project.org/doc/qt-5/qtwidgets-layouts-flowlayout-example.html
-
wrote on 5 May 2014, 09:52 last edited by
thanks.. seems promising, ill try this out..
2/3