Replies: 1 comment
-
|
At the moment that's not possible. I think for text handling in general, it would be desirable to converge towards an API similar to the models: A text document type that's explicitly shared between Slint and the application logic, with an API to place cursors, navigate, and perform selections. |
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.
-
I want to implement some component that will display a line of text, and allow user to select/deselect words on that line.
The line could also wrap around the display.
I could supply the line as a set of words from the rust code if required.
I couldn't think of a way to do that, not even a tricky one.
I could make a button out of every word, but then there is no layout that wraps, so I would need to calculate the position but don't see how.
I could use
Textthat wraps and get cursor coordinates on the line but I don't know how to tell what text is in those coordinates.Is there a way to achieve that?
Beta Was this translation helpful? Give feedback.
All reactions