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

TextInput with inputMask no overwrite on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.1
    • Quick: Other
    • None
    • Android

    Description

      For code below expected behavior that when cursor on position "N",
      then input of any letter cause override of N, with overwriteMode=true,
      and with overwriteMode=false, because of mask allow only one letter: "X 09°99'99\"".
      And this works fine on Linux/X11, macOS and iOS.
      But broken for some reason on Android.

      More specifically on Pixel 3a XL / Android 12.
      See screenshots. At the same time on Galaxy Tab A8 / Android 11 all works fine,
      and letter input overwrite first character.
      I used Qt 6.4.1 Clang arm64-v8a installed on Linux via qt online installer.

      import QtQuick 2.15
      import QtQuick.Window 2.15
      import QtQuick.Layouts 1.15
      import QtQuick.Controls 2.15
      
      Window {
          id: window
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          Component.onCompleted: {
              latitude.text = "N  40°18'99\""
          }
      
      
          RowLayout {
              anchors.fill: parent
              Text {
                  text: "Latitude: "
      
              }
      
              TextInput {
                  id: latitude
                  Layout.fillWidth: true
      
                  overwriteMode: true
                  inputMask: "X  09°99'99\""
              }
          }
      
      }
      

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            evgeniy_dushistov evgeniy_dushistov
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes