feat: add tooltip builtin#11623
Conversation
7822364 to
0c39f7e
Compare
0625759 to
3fc24ea
Compare
ogoffart
left a comment
There was a problem hiding this comment.
One detail about the API is that I wonder how to have custom content, while still having themed tooltip decoration.
|
I would also like to see a bit more tests for the error case. There should be either syntax test or test that this works. |
4cd1821 to
2912062
Compare
|
@michneaionuc I don't see any tooltip when using qt as backend only for winit |
|
I used the tooltip_on_button.slint example |
I'm gonna have a look at it. Thanks |
Not currently, but good point, I think we should add a configurable tooltip offset property |
4f92d1a to
ccbdf84
Compare
d6ad1b3 to
6d93b31
Compare
This PR introduces built-in tooltip support in Slint (#6446).
You can now attach a ToolTip to an element and get consistent hover behavior (including delay and placement), with proper runtime popup handling and style integration.
Highlights
How to test
Run the Gallery example and try tooltip interactions
cargo run -p galleryIn the UI, open Controls and find the ToolTip section
Regenerate docs locally