Handle mouse swipe in SwipeDelegate of ListView
cristeab last edited by
I am trying to add gestures support to ListView items using QML on macOS with Qt 5.12.3. I am able to provide a right delete button for each item with SwipeDelegate, but in the default implementation the gesture is detected only when I press the mouse, then I drag to the left. I am expecting to be able to do a left swipe on the mouse (Apple mouse) in order to get the same effect (in the same way the messages can be deleted in the e-mail client). Could you tell me how to add support for mouse swipe ?