[Qtwebengine] QVirtualKeyboard not working with QWebEngineView?

Peter Varga pvarga at inf.u-szeged.hu
Tue May 9 09:59:29 CEST 2017


On 05/05/2017 02:39 PM, Florian Bruhin wrote:
> Hey,
> 
> On Thu, May 04, 2017 at 04:24:07PM +0200, Pascal Huerst wrote:
>> I'm trying to use the Virtual Keyboard on a website, rendered within a
>> QWebEngineView, but the keyboard does not pop up if I click into a text
>> field. If I place a QLineEdit, next to the QWebEngineView and click into
>> it, the Virtual Keyboard works as expected. Interestingly, if I clicked
>> into the QLineEdit once, it starts also popping up, when clicking into
>> the text field on the web page, but it still does not receive any key
>> strokes. Somehow I can not belief, that the Virtual Keyboard is not
>> working within QWebEngineView, since this seems a rather common use case
>> to me.
> 
> Qt 5.8 had various IME-related issues with QtWebEngine, with many of
> them fixed in Qt 5.9. Can you try with that?
> 
> Florian
> 
> 
> 
> _______________________________________________
> QtWebEngine mailing list
> QtWebEngine at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qtwebengine
> 

Hi Pascal,

Florian is right, several related issues have been fixed in 5.9.
However, there are some fixes in 5.8 too. For example, this fix a
virtual keyboard issue on macOS:
https://codereview.qt-project.org/#/c/181969/3 and here is a test for
virtual keyboard: https://codereview.qt-project.org/#/c/180414/ So
theoretically the virtual keyboard works but to be honest I haven't
tried it with widget yet :) The QtWebBrowser (what is quick based)
works: http://code.qt.io/cgit/qt-apps/qtwebbrowser.git/

If you still can reproduce the issue with 5.9 please create a new bug
report at https://bugreports.qt.io Please add the following details to
the report:
- Which OS is affected
- Which API you use (I suppose widget)
- Which Qt version you use

If you could add a minimal example with virtual keyboard issue that
would be very helpful. If you could run the corresponding auto test
(tst_QWebEngineView::softwareInputPanel) and share the result that would
be also very helpful :)

Best Regards,
Peter



More information about the QtWebEngine mailing list