@m_jero I don't know why nobody answers this question. Maybe because you didn't supply any code snippets as recommended. Anyway, I suppose you used the exec() function to show the qmenu. Try to use popup() instead and see if it works.
@tomma
Thanks a lot! That was great input.
While reading about uinput the idea of writing to the event itself instead crossed me.
I implemented a function that generates the various (basic) events of a touch screen and writing it directly to event0.
It works perfect so far.
@p3c0 Where exactly i should put that code? As I asked earlier how should i know which button is pressed ?If you see my code I did with a signal but in that case i would need so many signals which is not a smart way to do. I am thinking of Bit masking .For example (sudo code)
OnClicked(Object sender)
{
if(sender == "BIT1")
{
BYTE1 |= 0x01; // AND operation
BYTE2 &= 0xFE; // OR operation
}
But don't know how to get that object and implement in qml.