Pass data to touch hold handler
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.
Did you find a way for this?
benoitranque last edited by
bit late but here you go