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

inputMethodHints not propagated after keyboard is opened once

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.2.0 Beta1
    • Fix Version/s: 5.2.0 RC1
    • Component/s: QPA
    • Labels:
      None
    • Environment:
      qt-windows-opensource-5.2.0-beta1-android-x86-win32-offline_2013-11-08_13-46-05-140.exe
    • Platform/s:
      Android
    • Commits:
      20981e2953adc8ad64735806e8564fc258d21900

      Description

      When you have multiple TextInput fields in the UI the keyboard gets it's inputMethodHints from the first text field that is opened. After that it doesn't get updated when new TextInput field is selected. This is regression between Beta1 daily builds.

      Introduced somewhere between qt-windows-opensource-5.2.0-beta1-android-x86-win32-offline_2013-11-01_15-23-35-126.exe - qt-windows-opensource-5.2.0-beta1-android-x86-win32-offline_2013-11-08_13-46-05-140.exe

      Sample application:

      import QtQuick 2.0
      
      Rectangle {
          width: 360
          height: 360
          Column {
              anchors.fill: parent
              spacing: 20
              Rectangle {
                  color: "red"
                  width: parent.width
                  height: 100
                  TextInput {
                      anchors.fill: parent
                      inputMethodHints: Qt.ImhDigitsOnly
                  }
              }
              Rectangle {
                  color: "red"
                  width: parent.width
                  height: 100
                  TextInput {
                      anchors.fill: parent
                      inputMethodHints: Qt.ImhNoPredictiveText
                  }
              }
              Rectangle {
                  color: "red"
                  width: parent.width
                  height: 100
                  TextInput {
                      anchors.fill: parent
                  }
              }
          }
      }
      

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                esabraha Eskil Abrahamsen Blomfeldt
                Reporter:
                ravila Risto Avila
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes