Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.11.0 Beta 3
-
Android 7
Description
When clicking on a QLineEdit embedded inside a QQuickWidget after a cycle of making a WebView visible it will not see the lineedit as having focus. In the example attached do the following:
- Click on Show Webview
- Click on Hide Webview
- Click on Show Webview
- Click on the lineedit
The keyboard shows but it will output:
W libwebview.so: (null):0 ((null)): QObject::connect: No such signal QWindow::cursorPositionChanged() W libwebview.so: (null):0 ((null)): QMetaObject::invokeMethod: No such method QWindow::inputMethodQuery(Qt::InputMethodQuery,QVariant) W libwebview.so: (null):0 ((null)): QMetaObject::invokeMethod: No such method QWindow::inputMethodQuery(Qt::InputMethodQuery,QVariant) W libwebview.so: (null):0 ((null)): QMetaObject::invokeMethod: No such method QWindow::inputMethodQuery(Qt::InputMethodQuery,QVariant)
due to the fact that qApp->focusObject() returns the QWindow as having focus and not the QLineEdit.