Hacker News new | ask | show | jobs
by dv_dt 14 days ago
I found Qts signal/slot system very nice to work with to help with bridging the application logic to UI events and flows. Maybe rust's generic async is all you need, but I suspect that a GUI should probably have some opinion of how it interacts with async.
1 comments

I recently saw a presentation from Matthias Rauter who is actively working on Qt bridges specifically for Rust.

So in theory you could have your business logic in Rust and shoehorn a full blown QT frontend.

I am not sure if it's production ready and they are certainly open to feedback from industry but it is definitely a path forward if you want to leverage all the conformity/compliance aspects that QT already worked out through the years.

I was actually thinking the most rust ui crates Ive tried don't have an equivalent to signal/slots. I hope some will try to build a more friendly bridging framework instead of leaving it adhoc. This article focused on the rendering aspects, rightly so. But there are other untouched areas to explore for rust ui libraries. Focusing on making the app logic bridge easier and even smarter would be a big differentiator to ui crates which otherwise there are a growing pile that differ on rendering stacks and ui widgets only.