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

TextField.echoMode: TextInput.Password does not work on Android (because of predictiveText)

    XMLWordPrintable

Details

    • Android
    • 2024wk38s2FOQtforAndroid

    Description

      as reported in QTBUG-126130 inputMethodHints does not work - Qt Bug Tracker,

      on Simulator when:

      inputMethodHints: Qt.ImhNoPredictiveText | Qt.ImhHiddenText 

      or even:

      qputenv("QT_ANDROID_ENABLE_WORKAROUND_TO_DISABLE_PREDICTIVE_TEXT", "1"); 

      in best case I can achive the predictive text will not shown (i mean that all line above keyboard where i have my suggestions)... see image bellow.

      However the text is still underline which means Android is composing the predictive text and the word "pes" is not realy entered as string, its only abstract string which is pending to decide which word is it (based on suggestion)...

      and so, if its not realy inputted string yet, the TextField does not hide the as password, so following does not work:

       

      TextField {
          echoMode: TextInput.Password
          inputMethodHints: Qt.ImhNoPredictiveText | Qt.ImhHiddenText
      }
      

       

       

      perhaps 6.7.3 as fix for BUG 126130 will also fix thisone?

      or do I do something wrong with the Imho settings?

      PS: I could so far only test simulator... the real device (as per my initial BUG 126130 seems to works fine) i didnt test yet

       

      on Windows this of course works fine

      Attachments

        Issue Links

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

          Activity

            People

              bartlomiejmoskal Bartlomiej Moskal
              shokarta Jiri Zaloudek
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes