Insert text into the textbox in qwebview through virtual keyboard

I am developing a virtual keyboard in qt. I want to display it in QWebView when user taps on a text field in web page. I am able to pop up the kayboard on user click. But not able to put the text into the text field entered through virtual keyboard. Any help would be appreciated.

Thanks in advance


What is the problem you have, which approaches did you try?

A simple way would be to inject a fake QKeyEvent into Qt's eventing system, using QCoreApplication::postEvent()

链接地址: http://www.djcxy.com/p/39308.html

上一篇: QWebView设置边框可见

下一篇: 通过虚拟键盘在qwebview的文本框中插入文本