Gestures on embedded linux



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.