@Ni.Sumi my prolem is that I am using qmouse event to display coordinates on a widget but I want it only when the cursor is on a specific widget . even thought my connect signals is on that widget the function that shows the coordinates is still active outside that widget and it show random usles stuff
@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.
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)
if(sender == "BIT1")
BYTE1 |= 0x01; // AND operation
BYTE2 &= 0xFE; // OR operation
But don't know how to get that object and implement in qml.