Hi everyone,
I have a virtual keyboard widget. I want to send key press event to the focused child widget of top widget from virtual keyboard.
What i know for qt embedded QWSServer will do this work.(Am I correct ?)
Can anybody suggest something ?
Printable View
Hi everyone,
I have a virtual keyboard widget. I want to send key press event to the focused child widget of top widget from virtual keyboard.
What i know for qt embedded QWSServer will do this work.(Am I correct ?)
Can anybody suggest something ?
I am trying to send keypress event to the focus widget.
Code:
But it is not working.
Same thing in a different way
keyboard class:
Code:
Mainwindow:
Code:
It is working. I am able to send text to line edit.
But problem is if I press enter then it will in infinite loop and after a while program will crash.
But i tried QInputMethodEvent in keyboard class.
I am able to set text only.
How i will send backspace kind of special key ?
Why keypress event is not able to send to focus widget ?
thanks.