Replies: 1 comment 3 replies
-
Yes, this is common practice. We are looking to implement better way to handle it. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm creating a ListView that supports multiple selection. It requires manipulating arrays (such as
find
,insert
,filter
) in various scenarios. To implement these manipulation functions, I use Global Callbacks and pass the arrays from the slint file to native code.I find this approach interesting but somewhat tricky, as my functions can only be used in this specific scenario (no generic type, and I need to pass flags to the callback). It makes it difficult to extend them to other situations. Additionally, I can't use the slint viewer.
So, I'm curious if my practice is common, or if there's a better way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions