Skip to content
Discussion options

You must be logged in to vote

Sorry if I am a bit late to the party. To make Slint aware of those structs you'll have to write those data structs from within Slint. Assuming Mod and ModEntry are also structs:

export struct Mod { /*  put the fields here */ }

export struct ModEntry { /*  put the fields here */ }

export struct ResolvedModEntry {
    mod_ref: Mod,
    entry: ModEntry,
}

Those structs are then available as regular Rust structs.

If you want to start with a StandardTableView you'll have to create a two-dimensional Vec in Rust and copy the display data to StandardListviewItem's text property. Just wrote an example for StandardTableView few days ago for this discussion.

With a ListView you are more flexible …

Replies: 1 comment 1 reply

Comment options

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

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