[solved] How to change line spacing in Flow?
QML and Qt Quick
7
Posts
4
Posters
3.0k
Views
1
Watching
-
If there is no direct way to do it, you can try it by leaving some dummy space with each item. For e.g.
@
import QtQuick 1.0Rectangle {
width: 50
height: 300Flow { width: 50 Item { width: 50; height: 60 //Extra height Rectangle { height: 50 width: 50 color: "blue" } } Item { width: 50; height: 60 Rectangle { height: 50 width: 50 color: "black" } } }
}
@So there is a difference of 10 between each line.
-
Also it will be good to add [solved] to title. Manually of course