Important: Please read the Qt Code of Conduct -

Is Swipe Action in Android 10 gesture mode handled by default?

  • Should I handle Swipe Action somehow with a code like provided below in my QT Quick app?



    bool MainWindow::event(QEvent *event){
        if (event->type() == QEvent::Gesture)
            return gestureEvent(static_cast<QGestureEvent*>(event));
        return QWidget::event(event);

    or is it handled by default?

    Currently my app does not have some specific code related to swiping and behaves incorrectly when it is deactivated by swiping, see my post for details.

    For example aboutToQuit is called when the app is deactivated, but onApplicationStateChanged is not and the app looses its state. Also I have some messages like “WIN DEATH” and “Channel is unrecoverably broken“ etc.. in logs.

Log in to reply