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

Android: the visible property is not set to false when keyboard is hidden

XMLWordPrintable

    • Android
    • f1f07eae2d40f202a709af33ca1e8d86551c9ace

      Run the following application:

      import QtQuick 2.2
      import QtQuick.Layouts 1.1
      
      Rectangle {
          width: 360
          height: 360
          ColumnLayout {
              TextInput {
                  text: qsTr("Hello World")
                  Layout.preferredHeight: 200
                  Layout.fillWidth: true
      
              }
              Text {
                  text: Qt.inputMethod.visible ? "keyboard visible" : "keyboard not visible"
                  Layout.fillHeight: true
                  Layout.fillWidth: true
              }
          }
      }
      

      When you click on the text input the keyboard is shwon and the text changes to "keyboard visible", but when you close the keyboard with the back button, the text does not change back.

      It changes back when you hit the back button again. Sometimes it works (every second time?)

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

            taipan BogDan Vatra
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes