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

Android: virtual keyboard shown with inputMethod.show() resizes the window but TextInput moves it

XMLWordPrintable

    • Android
    • 2023wk32FOQtforAndroid

      Behaviour of Qt.inputMethod.show and touching TextInput are inconsistent. Qt.inputMethod.show resizes window so that keyboard fits where as TextInput keeps original window size, but moves it if it would be obscured by the virtual keyboard.

      In attached application press "press first" resizes the window (uses Qt.inputMethod.show()).

      Then close and run application, touching the TextInput ("press after") will keep window size the same but just moves it.

      Behaviour of Qt.inputMethod.show() would be better than moving, now it makes items that were in upper parts of the page to be inaccessible.

      There is also another issue, TextInput does not move the window if keyboard is already open, but just resizes it when it gains focus:
      1. start application
      2. press "press first" (this opens keyboard with Qt.inputMethod.show())
      3. press "press after" (this resizes window to full screen size)
      This makes actual TextInput to be under the keyboard.

        1. qtbug40728.tar.gz
          1 kB
          Joni Poikelin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtandroidteam Qt Android Team
            poikelin Joni Poikelin
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes