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 BlackBerry and QNX
  4. Simulate Touch Events on BB10
Forum Updated to NodeBB v4.3 + New Features

Simulate Touch Events on BB10

Scheduled Pinned Locked Moved Qt on BlackBerry and QNX
2 Posts 2 Posters 2.7k 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 22 Feb 2013, 21:34 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 25 Feb 2013, 10:35 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

      1/2

      22 Feb 2013, 21:34

      • Login

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