Skip to content

Passing Rust native structs into slint like in Qt #6773

Discussion options

You must be logged in to vote

In Slint, the .slint files needs to be self contained and the Slint compiler need to know about every type at compile time. (In QML, it is much more dynamic and we can register type t runtime)
So you can do the opposite by declaring a export struct Data { ... } in slint and using that in rust.

We do have plan to be able to import rust structs. This is tracked in #1726

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bryce-happel-walton
Comment options

Answer selected by bryce-happel-walton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants