How to programmatically simulate a Touch event in Meego?

I need to use the input text file 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 transmitted by the touch screen on the meego device to trigger the corresponding touch event?

Is the input type coordinates, screen, any identifier?

I know that I can use an instance of the QTouchEvent class and pass it to QApplication:: sendEvent() , but how do I program a touch message that will be processed in the same way as the actual human touch?

Please suggest an alternative solution.

thanks

+4
source share
1 answer

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

You can also try publishing a QMouseEvent using QCoreApplication::postEvent()

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

+1
source

All Articles