Passing Array of Strings from C++ #2324
-
Hello Community! I hope this is the right way to find help for my issue. My goal is to populate a ComboBox with Items I hold in an array of strings. This is represented by slint as an I manage to create the object with std::make_shared and then try to add to the Model by its method I keep getting errors of a static_cast when creating the shared_ptr. When I create the pointer in another way, I get an error about using an abstract base class. What is the usage of the Model wrapper for arrays and how can I solve my issue? Thanks :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Could you paste the exact error message you're getting as well as the relevant lines of code? Are you using slint::VectorModel ? Maybe you need to use std::static_pointer_cast ? |
Beta Was this translation helpful? Give feedback.
Could you paste the exact error message you're getting as well as the relevant lines of code?
Are you using slint::VectorModel ?
Maybe you need to use std::static_pointer_cast ?