Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt on QNX
  4. Simulate Touch Events on BB10

Simulate Touch Events on BB10

Scheduled Pinned Locked Moved Qt on QNX
2 Posts 2 Posters 2.9k 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.
  • K Offline
    K Offline
    konradzielinski
    wrote on last edited by
    #1

    I posted this on stack overflow, but re-posting here as didn't receive any answers:

    I am attempting to simulate touch events on BB10 app. My main goal is to create a touch event, for example, for pixel (100,100) and have the application handle it. This is part of an automated GUI test which will help in further deployment.

    I've been messing around with this for a couple days now with no progress really. I've tried simulating touch events and then sending them using Qt send event, but that didn't seem to work. Is there any way for me to "send" an ontouch signal? Any help is greatly appreciated as I am slowly giving up.

    Does anyone have any ideas at all?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bomb3rman
      wrote on last edited by
      #2

      Hi,
      are you using QtGui or Cascades and which Qt version?
      I think there are several ways to do that. Did you already look into the qnx platform plugin? The touch events are sent with QWindowSystemInterface::handleTouchEvent(w, m_touchDevice, pointList);
      So you could hack it into the platformplugin somehow.
      Another possibility would be to inject a bps screen touch event into the qt event loop. You might want to have a look at:
      QQnxBpsEventFilter::nativeEventFilter(const QByteArray &eventType, void *message, long *result)
      and:
      http://developer.blackberry.com/native/reference/bb10/screen_libref/topic/function_types.html

      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