QT Virtual Keyboard for WebBrowser
-
Hi Forum Members,
I am trying to add keyboard input to webpage.
That is not a clear, I know
I have a virtual keyboard available in My Project. It is already Created.
I am using QWEbView to show my WebPage.
How can we put text content in WebView through Virtual Keyboard.#webview #webkit #webkitwidgets
-
You can use Qt Virtual Keyboard for that.
I'm not aware of an example for WebKit, but you can take inspiration from Qt WebBrowser, which is Qt WebEngine based:
https://code.qt.io/cgit/qt-apps/qtwebbrowser.git/tree/src/qml/Keyboard.qml
https://code.qt.io/cgit/qt-apps/qtwebbrowser.git/tree/src/qml/Main.qml -
I am using QT5.8. & c++.
-
I am using QT5.8. & c++.
Qt VirtualKeyboard is available in Qt 5.8.
For C++: If you mean that you're using Qt Widgets, there's an integration with Qt VirtualKeyboard, too: https://doc.qt.io/qt-5/qtvirtualkeyboard-deployment-guide.html#integration-method