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

[Reg 6.5.6->6.7.2] QWidget-based text input, e.g. QLineEdit and QTextEdit, does not integrate well with Android system built-in keyboard

    XMLWordPrintable

Details

    • Android
    • 2024wk38s2FOQtforAndroid, 2024wk48s3FOQtforAndroid

    Description

      Reproducer attached. By default, it is a QLineEdit being positioned at the bottom of window. One can also replace it with QTextEdit, etc., and the issues are the same. One can built it with 6.5.6 and 6.7.2 to see the problem.

      Good behavior (6.5.6):
      1. Upon clicking QLineEdit so that it is focused, only digit keyboard pops up. Because "Qt::ImhDigitsOnly" says so.
      2. The entire window is shifted upward a little bit (I can tell by putting a QLabel on top edge of window), so that QLineEdit is not covered.

      Bad behavior (6.7.2):
      1. Upon clicking QLineEdit, it is still full keyboard.
      2. No shift happens and QLineEdit is completed covered. One can't see what's being input.

      Update: not a QWidget issue but a more generic input method/platform integration issue on Android. QML text input components are also affected. A separate bug report for QML issue is created:
      https://bugreports.qt.io/browse/QTBUG-128378

      Attachments

        Issue Links

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

          Activity

            People

              qtandroidteam Qt Android Team
              luqiaochen Luqiao Chen
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes