Replies: 1 comment
-
|
Perhaps Slint should add a ghost element, which incurs no overhead whatsoever and exists solely to wrap multiple child elements. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As far as I can see, right now we can only have one single item created by
for-inloop at each step:for i in 42: Text { text: i; }. Did I miss something probably?There are cases where you would like to create several items at each step. One possible workaround is to wrap it in a
Rectangle. But it's not always possible, for example when you are generatingPathcontents. Also it adds unneeded extra level to item hierarchy.Possible syntax can be something like:
Beta Was this translation helpful? Give feedback.
All reactions