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

inputMethodHints not propagated after keyboard is opened once

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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

    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

              esabraha Eskil Abrahamsen Blomfeldt
              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