aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonsta Alajärvi <konsta.alajarvi@qt.io>2026-03-06 13:27:10 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2026-03-19 06:15:22 +0000
commitba3b524157b2230f001a3b355fe7dbeb633a75c2 (patch)
tree9201121fc053f1cc9cb2dc52c230b07000f3aeb1
parent2e2b8f8e765a218d69e4281ce6d0b968d8cdaf05 (diff)
QtQuick::TextInput clarify ImhSensitiveData behaviour on Android IMEs
Add information about Qt.ImhSensitiveData use on Android and that it may be interpreted by some Android IMEs as a “password‑like” variation. Those keyboards can disable predictive input and, in some implementations, restrict available characters to Latin/ASCII. Task-number: QTBUG-143245 Pick-to: 6.8 Change-Id: I2912600061c4fd0af5556fed4a17cfcb0e3dca8a Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 1a1fc239bc944b9bdbfa3d7d78f15d17b361ac0f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 5e9f28262e58fb09f6bfdb42a7ee90aa820a60a8)
-rw-r--r--src/quick/items/qquicktextinput.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/quick/items/qquicktextinput.cpp b/src/quick/items/qquicktextinput.cpp
index 78454199b3..61c787698e 100644
--- a/src/quick/items/qquicktextinput.cpp
+++ b/src/quick/items/qquicktextinput.cpp
@@ -1325,8 +1325,15 @@ void QQuickTextInput::setEchoMode(QQuickTextInput::EchoMode echo)
Flags that alter behaviour are:
\value Qt.ImhHiddenText Characters should be hidden, as is typically used when entering passwords.
+
+ Note that Android IMEs deliberately only
+ allow Latin/ASCII character input for password fields.
\value Qt.ImhSensitiveData Typed text should not be stored by the active input method
in any persistent storage like predictive user dictionary.
+
+ Note that the Qt Framework treats this as a visible password
+ and in this case Android IMEs deliberately only
+ allow Latin/ASCII character input.
\value Qt.ImhNoAutoUppercase The input method should not try to automatically switch to
upper case when a sentence ends.
\value Qt.ImhPreferNumbers Numbers are preferred (but not required).