Surrealism-All / SurrealismUI

A third-party UI library using Slint, I think it will give you an extraordinary experience
https://surrealism-all.github.io/SurrealismUI.github.io/
MIT License
216 stars 20 forks source link

SAlert 能否做到延时自动关闭, 类似android toast #39

Closed asmh1989 closed 5 months ago

asmh1989 commented 5 months ago

如题, 似乎不能在slint ui文件中写 类似 qml Timer的东西, 只能在rust中实现

syf20020816 commented 5 months ago

slint is just a DSL, If you wanna do this, you need to do in rust

syf20020816 commented 5 months ago

please use Timer in rust

let timer = Timer::default();
let _ = timer.start(//...)