Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/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?

    grabGesture(Qt::SwipeGesture);
    

    or

    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