Simulate Touch Events on BB10



  • 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?



  • 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


Log in to reply
 

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