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

Qt.ImhNoPredictiveText not working on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.0
    • Quick: Controls 2
    • None
    • Android

    Description

      Qt.ImhNoPredictiveText does not seem to disable keyboard suggestions. I have this field:

      TextInput {
          id: edPassword
          Layout.alignment: Qt.AlignHCenter
          Layout.preferredWidth: 500
          Layout.preferredHeight: 120
          Layout.maximumWidth: parent.width
          echoMode: TextInput.Password
          inputMethodHints: Qt.ImhNoPredictiveText | Qt.ImhNoAutoUppercase | Qt.ImhSensitiveData
      }

      I tried many combinations, but none worked. I also tried the env variable QT_ANDROID_ENABLE_WORKAROUND_TO_DISABLE_PREDICTIVE_TEXT, but nothing changed.

      I tested on:

      • Android 14, Pixel 7a
      • Android 9
      • Android 10, Samsung Note9

      On the Android 9 and Android 10 devices, echoMode also failed, and characters are visible until a space is added.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            luc4 Luca Carlon
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes