Skip to content

Initialising properties with Rust #6995

Answered by bjorn
iaminapickle asked this question in Q&A
Discussion options

You must be logged in to vote

Because FooWindow doesn't have a foo_width property, only Foo has. You will need to expose this property on your exported component (and forward it on the Slint side, if needed). Or use the global and bind like width: FooGlobal.foo_width instead.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@iaminapickle
Comment options

@bjorn
Comment options

Answer selected by iaminapickle
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