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. Gestures on embedded linux

Gestures on embedded linux

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 553 Views 1 Watching
  • 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.
  • B Offline
    B Offline
    Bjorn.Gurnett
    wrote on last edited by
    #1

    Hello

    I have a class that derives from a QDeclarativeItem (Qt 4.8.6), in which I'm trying to get swipeGestures to work.

    In the constructor I have added

    setAcceptTouchEvents(true);
    grabGesture(Qt::SwipeGesture);
    

    However in

    bool GraphPopUp::event(QEvent event)
    {
    qDebug() << "Event" << event->type();
    if (event->type() == QEvent::Gesture)
    return gestureEvent(static_cast<QGestureEvent
    >(event));
    return QDeclarativeItem::event(event);
    }

    I am unable to detect QEvent::Gesture.

    Are there any examples or am I missing something?

    Thank you

    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