Skip to content
Discussion options

You must be logged in to vote

The idea is that you would keep a reference to the VecModel and you can add your log like that.

You can also do ui.get_log_model().as_any().downcast_ref::<slint::VecModel<StandardListViewItem>>() to get the VecModel back (assuming you initialized the model with a VecModel before)

Replies: 2 comments 6 replies

Comment options

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

Comment options

You must be logged in to vote
5 replies
@AllenDang
Comment options

@ogoffart
Comment options

@AllenDang
Comment options

@AllenDang
Comment options

@ogoffart
Comment options

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