[solved] How to change line spacing in Flow?
-
Does anyone know if it is possible to change line spacing in Flow element? As far as I understood, spacing property is to set the gap between items, but not the gap between lines.
-
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.
-
Thanks for the workaround. It worked for me! In my case, I wanted to shrink the line spacing, but the same trick to adjust items' height worked.
Still, it's nice to have a dedicated property - e.g. "linespacing".
-
Glad it worked for you ! Please mark the post as solved.
-
To change to "solved", is there any button to press to change the status, or manually edit the title?
-
Just add a tag "solved", that's it
-
Also it will be good to add [solved] to title. Manually of course