开发者

How to programmatically simulate touch event in Meego?

开发者 https://www.devze.com 2023-04-04 04:44 出处:网络
I need to use an input text fi开发者_如何学运维le as an alternative to touch input for a meego based device , I want to know how I can do this.

I need to use an input text fi开发者_如何学运维le as an alternative to touch input for a meego based device , I want to know how I can do this.

What input parameters are actually passed by the touch screen on meego device to invoke the respective touch event?

Whether the input type is coordinates, screen, any id?

I know I can use QTouchEvent class instance and pass it QApplication:: sendEvent(), but how to programatically post the touch event which will be processed just as an actual human touch?

Please suggest alternative solution.

Thanks


I faced a similar problem on linux touch device. What you are trying to do is probably equivalent to human touch.

You can also try posting QMouseEvent using QCoreApplication::postEvent()

In QMouseEvent, you can pass x and y coordinates of the location you want to click.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号