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

Qt.inputMethod.visible incorrectly flipflops when tapping TextInput on older Android (6.0)

    XMLWordPrintable

Details

    • Android

    Description

      Attached is a slightly modified "Qt Quick Application - Empty", with a TextInput and a listener to 

      onVisibleChanged on Qt.inputMethod.

       

      As it can be seen from the annotated logfile, what happens when tapping the TextInput to bring up the on-screen keyboard, is that Qt.inputMethod.visible changes to true, as it should be, but then immediately afterwards changes back to false again.

       

      The following debug from the ViewRootImpl does show the keyboard being dismissed however. It just seems to go missing inside Qt.

       

      D ViewRootImpl: The input has been finished in ImeInputStage.
      D ViewRootImpl: The input has been finished in ImeInputStage.
      D ViewRootImpl: MSG_RESIZED: ci=Rect(0, 72 - 0, 0) vi=Rect(0, 72 - 0, 0) or=1

       

      This makes it nigh on impossible to figure out from inside a QtQuick application, "when" a user has dismissed the on-screen keyboard, which is necessary in order to know when to remove highlights etc. from input fields.

      This doesn't seem to happen on a newer device with Android 8. (See attached sonyxperiaz5compact.log)

      Attachments

        1. AndroidInputMethodBug.log
          6 kB
          René Hansen
        2. AndroidInputMethodBug.zip
          5 kB
          René Hansen
        3. sonyxperiaz5compact.log
          3 kB
          René Hansen

        Activity

          People

            lukasz.kosiorowski lukasz.kosiorowski
            rhardih René Hansen
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: