Skip to content
Discussion options

You must be logged in to vote

I can't say for certain, because I've never tried, I think you would need to create your own custom button to do that.

Here is a quick thrown together example showing a rough idea of handling the down and up events on a touch area for a custom "button". It's not exactly what you want, but hopefully will lead you in the right direction.

In regards to reacting to if the button has been toggled, haven't tested this, but perhaps add in a changed callback for the buttons state?: https://slint.dev/blog/property-changed-callback

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@drewlwhitney
Comment options

@Vadoola
Comment options

@drewlwhitney
Comment options

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