Flow layout with centered content
问题 I have a row with items which should stack when the window width gets too small for displaying all items in a row, as shown in the following sketch: The Flow component stacks the items but they are not centered but aligned on the left or right side: Flow { Item {} Item {} Item {} Item {} Item {} } Is there a built-in way in QML to make the flow centered? 回答1: Well there is no built-in way but I found a workaround to do it. The idea is simple, since Flow is already an Item it has anchors