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. Receiving no events in QQuickItem
Forum Updated to NodeBB v4.3 + New Features

Receiving no events in QQuickItem

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 727 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.
  • W Offline
    W Offline
    wspilot
    wrote on last edited by
    #1

    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";
    }
    @

    1 Reply Last reply
    0
    • W Offline
      W Offline
      wspilot
      wrote on last edited by
      #2

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

      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