<div>I'm trying to make a PyQt5 application for Android react to swipe gestures (in order to let the user swipe through pictures). I didn't find much documentation about this (neither for C++ nor Python) but I came up with an approach which looks plausible to me:<br></div><div><br></div><pre><code><span><span>class</span> <span>MyViewer</span>(<span>QtWidgets.QLabel</span>):</span>
    <span><span>def</span> <span>__init__</span>(<span>self, parent=<span>None</span></span>):</span>
        <span>super</span>().__init__(parent=parent)
        self.grabGesture(QtCore.Qt.SwipeGesture)

    <span><span>def</span> <span>event</span>(<span>self, event</span>):</span>
        <span>if</span> event.<span>type</span>() == QtCore.QEvent.Gesture:  <span># <= this won't happen</span>
            print(<span>"Hello event!"</span>)
        <span>return</span> <span>super</span>().event(event)</code><br></pre><div>The app runs without errors but the event() method does not receive any events that look like gestures (at least on Android an Linux, but I don't know if I have to expect gestures work on Linux at all).<br></div><div><br></div><div>I've posted a question on StackOverflow, but with no answers yet: <a href="https://stackoverflow.com/questions/66304454/receive-gestures-in-pyqt5-for-android">https://stackoverflow.com/questions/66304454/receive-gestures-in-pyqt5-for-android</a><br></div><div><br></div><div>Are there any known issues with gestures on Android with PyQt5?<br></div><div>Did I forget something important? Or am I on a totally wrong path here?<br></div><div><br></div>