Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-67518

[Android]: 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

    XMLWordPrintable

Details

    • Android

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            stromme Christian
            andysh Andy Shaw
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes