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

inputMethodHints not propagated after keyboard is opened once

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.2.0 RC1
    • 5.2.0 Beta1
    • QPA
    • None
    • qt-windows-opensource-5.2.0-beta1-android-x86-win32-offline_2013-11-08_13-46-05-140.exe
    • Android
    • 20981e2953adc8ad64735806e8564fc258d21900

      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
                  }
              }
          }
      }
      

        For Gerrit Dashboard: QTBUG-34827
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes