I want to move widgets to next row according to resizing space.Suppose there is 5 label in a row ,but when i resize and there is insufficient size for them some of them will move to next row.
But I don't know how to achieve that using any Qlayout.
Before
After
I have done this manually but I want they should be automatically moved to next row accordingly while resizing if there is insufficient size for a element.

