Skip to content

How to write/register truly native components? #5315

Answered by FloVanGH
coderedart asked this question in Q&A
Discussion options

You must be logged in to vote

Currently to provide pre-compiled Slint components e.g. in a separate crate and use them in you application project does not work or am I wrong @tronical? What you can do is to ship slint files with your plugin you can use my custom widget crate as example

What you also can do is to ship generic functionality that is based on types from the slint-ui crate. For example I have done an generic keyboard selection behavior for models in Slint https://codeberg.org/flovansl/co_sl/src/branch/main/apps/coop_local/rust/src/item_selector.rs

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@coderedart
Comment options

@FloVanGH
Comment options

Answer selected by coderedart
@coderedart
Comment options

Comment options

You must be logged in to vote
1 reply
@FloVanGH
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants