[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.
6 replies
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.0
- Rectangle {
- width: 50
- height: 300
- Flow {
- 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.
You must log in to post a reply. Not a member yet? Register here!




