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

QSpinBox does not respond correctly to Android keyboard

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8.0 Beta3
    • None
    • Samsung Galaxy Tab A8, running Android version 14.
      Motorola Razr 40 Ultra, running Android version 14.
    • Android
    • 2024wk38s2FOQtforAndroid, 2024wk40s3FOQtforAndroid, 2024wk42s3FOQtforAndroid, 2024wk48s3FOQtforAndroid

    Description

      When using QSpinBox (the Widgets kind), the Android keyboard behaves strangely. This can be reproduced on a minimal example (project attached). The issue was observed on a Samsung Galaxy Tab A8, running Android 14, in both landscape and portrait mode. It was also observed on a Motorola Razr 40 Ultra, running Android 14, but only when using the phone in landscape mode.

      The QSpinBox where this was observed as been configured to accept a large number, so as to not let the automatic number validation interfere with the testing.

      What did you do:

      • Open the project application on the device
      • Tap the number field to start editing text, the on-screen keyboard appears
      • Tap some numbers, and try to use backspace
      • Try tapping somewhere inside the number-field to change where the text-insertion marker is placed.
      • Close the editing session by pressing the button with the "Done" smymbol on the on-screen keyboard.

      What did you expect to happen?
      I expect to get immediate feedback when I press numbers, and see them show up on screen. I expect the backspace to remove numbers immediately, and see the result in real-time. I expect the text-insertion-marker to move when I press inside the number-field.

      What happened:
      When entering text, the number-field does not update at all. No new numbers appear in the number-field. When pressing backspace, there is no visible change. When pressing inside the number-field, nothing happens, there is no response.

      When pressing the Done button, the on-screen keyboard closes and immediately opens back up with no change to the number-field.

      Under some circumstances, it seems the changes will be flushed all at once. I was not able to figure out the exact steps to reproduce this, but seems to be related to switching to another application and then going back to the example.

      Attachments

        1. CMakeLists.txt
          2 kB
        2. main.cpp
          0.6 kB
        3. QML_REPRO.mp4
          3.72 MB

        Issue Links

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

          Activity

            People

              bartlomiejmoskal Bartlomiej Moskal
              npskalerud Nils Petter Skålerud
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes