-
how to make a resizabe component which contains verticaly and horiotal parameter and can be implement childrens for eg. rectangles?
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
This feature has become problematic for me to implement because I need a collection here and somehow forward the parameters of each added element and handle each one, add a splitter in the middle and react to the touch area on each splitter |
Beta Was this translation helpful? Give feedback.
-
I am looking on MenuBar and Menu items as example |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, this might not be possible to have that in a generic way right now because the Splitter is also hard to do. Lines 258 to 325 in d6846c3 |
Beta Was this translation helpful? Give feedback.
-
ok i am new on slint yet but thank you. It will be first more difficult feature in my first app. :) |
Beta Was this translation helpful? Give feedback.
Unfortunately, this might not be possible to have that in a generic way right now because the
@children
cannot do that. Improved support of@children
is tracked in issue #6258Splitter is also hard to do.
We have an example in our code with 3 widgets here:
slint/tools/lsp/ui/main.slint
Lines 258 to 325 in d6846c3