Receiving no events in QQuickItem



  • Hi,
    I am working on a Sailfish app, Qt5.1.0
    I have a QQuickItem based class with overridden event and QTouchEvent functions.
    Still, I get no response after touch or mouse events.
    Am I overseeing sth?
    Thanks.

    @class Ogl : public QQuickItem
    {
    bool event(QEvent *event);
    void touchEvent(QTouchEvent * ev);
    ..
    }
    @

    and

    @bool Ogl::event(QEvent *event)
    {
    qDebug() << "MultiTouch::touchEvent";
    }
    void Ogl::touchEvent(QTouchEvent * ev)
    {
    qDebug() << "MultiTouch::touchEvent";
    }
    @



  • Answering myself.
    The QQuickItem lives within a SilicaFlickable.
    SilicaFlickable picks up the events.


Log in to reply
 

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