I use QWebView to open a webpage, and i want to simulate keydown event to input a string into a input element by javascript.
I search in google, and has tried simulating-keydown-event-in-chrome and simulate-javascript-key-events,
but they all don't work for me.

Is there someone can give me a work javascript code or other useful information?
thanks in advance.