Pass data to touch hold handler
-
Hello,
I’m trying to build a component which is a QList that can be touch held to bring up an action sheet.
The issue I’m facing is that I cant pass any data to the handler function for the hold “event”. I need to do so to redirect the user to the correct page after an action has been selected.
I’ve simulated my idea at https://codepen.io/andrezipf94/pen/BxvKLQ. Is it possible to pass the held item info to the handler function that way?
Edit: Also, can I listen for a click event in an entire line of the list? I’ve tried adding a button surrounding it, but it messed the text up.
-
Hi!
Did you find a way for this?
-
bit late but here you go
-
@benoitranque said in Pass data to touch hold handler:
bit late but here you go
Thank you so much! I’ve been looking for this solution for hours.