Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Is Swipe Action in Android 10 gesture mode handled by default?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 150 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dmitriano
    wrote on last edited by Dmitriano
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved