Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

How can I use ColumnFlow with "heterogeneous" children? #11

Open
hagabaka opened this issue Feb 5, 2015 · 0 comments
Open

How can I use ColumnFlow with "heterogeneous" children? #11

hagabaka opened this issue Feb 5, 2015 · 0 comments

Comments

@hagabaka
Copy link

hagabaka commented Feb 5, 2015

It seems that ColumnFlow is like a Repeater, so you can only give it one delegate. However I would like to layout multiple elements in the same ColumnFlow. Is this possible?

In my project I have 5 GroupBox that are generated from a list model using Repeaters, and another "hard-coded" GroupBox. When I used GridLayout, I was able to use a structure like this:

GridLayout {
  Repeater {model: 5}
  GroupBox { }
}

screenshot

The excess empty spaces in some GroupBoxes looked ugly, so I used your ColumnFlow. However, now I have to use

RowLayout {
  ColumnFlow {model: 5}
  GroupBox { }
}

screenshot
If the last GroupBox could be also placed in the ColumnFlow, I would be able to use 3 columns and make use of screen space more efficiently.

My source code is here, if you are curious.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant