Radio Buttons #2077
-
I've seen radio buttons mentioned vaguely in the docs (I think) and in PRs, but are there actually radio buttons built in to slint? Otherwise, is there a way to make checkboxes behave like radio buttons? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
We still don't have builtin radio button. We have an example that implement them: slint/examples/fancy_demo/main.slint Line 197 in 29b17fd Used in slint/examples/fancy_demo/main.slint Lines 387 to 389 in 29b17fd and we manually reset them on click with the function slint/examples/fancy_demo/main.slint Line 358 in 29b17fd But this is a currently missing widget that we still need to add to Slint |
Beta Was this translation helpful? Give feedback.
-
In addition to the answer already in this thread, if you have a dynamic number of radio buttons, you can do something like this:
|
Beta Was this translation helpful? Give feedback.
We still don't have builtin radio button.
We have an example that implement them:
slint/examples/fancy_demo/main.slint
Line 197 in 29b17fd
Used in
slint/examples/fancy_demo/main.slint
Lines 387 to 389 in 29b17fd
and we manually reset them on click with the function
slint/examples/fancy_demo/main.slint
Line 358 in 29b17fd