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

Receiving no events in QQuickItem

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 694 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.
  • W Offline
    W Offline
    wspilot
    wrote on 22 Nov 2014, 21:04 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 23 Nov 2014, 15:04 last edited by
      #2

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

      1 Reply Last reply
      0

      2/2

      23 Nov 2014, 15:04

      • Login

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