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

[REG 6.6 → 6.7] Qt.ImhDigitsOnly and Qt.ImhFormattedNumbersOnly no longer trigger the numeric-only keypad when set to inputMethodHints property on Android.

    XMLWordPrintable

Details

    • Android
    • 2024wk26s2FOQtforAndroid

    Description

      When setting the inputMethodHints property for a TextField to Qt.ImhDigitsOnly or Qt.ImhFormattedNumbersOnly, it doesn't trigger a numeric-only keypad on Android as it used to in earlier versions (6.6.3, 6.5.6).

      To reproduce the issue, use the following code and press on the text field:

      import QtQuick

      import QtQuick.Controls

      Window {
      width: 640
      height: 480
      visible: true
      title: qsTr("Hello TextField")

          TextField

      {         anchors.centerIn: parent             inputMethodHints:   Qt.ImhDigitsOnly // Qt.ImhFormattedNumbersOnly            }

      }

       

      Attachments

        Issue Links

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

          Activity

            People

              bartlomiejmoskal Bartlomiej Moskal
              mahdi.belila Mehdi Belila
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes