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

Hiding QML-TextField while predit is active freezes Android app

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.1
    • None
    • Android
    • Next

    Description

      I have a 'close' button next to my search-field, when I click that it empties the text and it also hides and disables the entire tree for the search, that the texfield is part of.

       

      The action of setting the visible and the enabled properties to false of the TextField (and the components that contain it) is no problem if you have no text or just pressed space.

      But if you are in the middle of typing a word, the cursor will stop blinking and the UI freezes. After a while the Android OS asks me to wait longer or kill the app.

       

      I figured out that I can avoid this issue by prefixing the change of visibility / enabledness with two lines:

      Qt.inputMethod.commit();
      Qt.inputMethod.hide();

       

      This likely means that the Android input method needs a fix to do this automatically.

      Attachments

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

        Activity

          People

            qtandroidteam Qt Android Team
            tomz Tom Zander
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes