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

Android: TextArea.text not always updated with the virtual keyboard

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.4.1
    • Quick: Controls 1
    • None
    • Android x86 emulator
    • Android

    Description

      The attached project contains the following code:

      ApplicationWindow {
          visible: true
      
          TextArea {
              id: textArea
              anchors.top: parent.top
              anchors.bottom: textField.bottom
              anchors.left: parent.left
              anchors.right: parent.right
          }
      
          TextField {
              id: textField
              anchors.left: parent.left
              anchors.right: parent.right
              anchors.bottom: parent.bottom
              text: textArea.text
          }
      }
      

      To reproduce:
      1. Open and start the project;
      2. Focus the TextArea directly - do not focus the TextField before that or the bug won't occur;
      3. Start typing using the Android virtual keyboard - do not use the hardware keyboard if running an emulator;
      The text of the TextField does not change even though it is bound to the text of the TextArea. Now:
      4. Focus the TextField and then focus the TextArea again;
      5. Type again using the virtual keyboard - now it works properly.

      Possibly related: in an emulator (mine is Genymotion) type some text using the virtual keyboard, then using the hardware keyboard. Now type some more using the virtual keyboard: all manners of weird behaviour start appearing: the piece of text typed with the hardware keyboard is moved to the front, the backspace on the hardware keyboard does not delete the piece of text entered with the virtual keyboard, etc. Some of that also happens with just a TextField. Whatever the case, this part is not as important as the issue described with the steps above.

      There's some chance all of this is related to https://bugreports.qt.io/browse/QTBUG-44526 .

      Attachments

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

        Activity

          People

            tvete Paul Olav Tvete
            ddobrev Dimitar Dobrev
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes