Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
6.7.1
-
None
-
Win64, Android Emulator
-
-
2024wk26s2FOQtforAndroid
Description
so all day I am trying to manage to have triggered textChanged() in TextInput{} / TextField{} when user type in something...
however because it only keeps partial text in preeditText / displayText then its not possible.
so I tried all google hints to use:
inputMethodHints (either Qt.ImhNone, Qt.ImhSensitiveData or Qt.ImhNoPredictiveText),
howevert it has no effect... keyboard still shows me the hints of what i probably want to type by dictionary, and new characters are not accepted as text anyway.
I tried so many things, like:
text: displayText
or:
onPreeditTextChanged: if (preeditText.trim().length > text.trim().length) { if (preeditText.trim().length === 1) { text = preeditText.trim(); } else { text += preeditText.trim().substring(text.length, preeditText.trim().length); } }
or same/similar with displayText
which brings so many issues...
can I kindly ask for the VERY BASIC example how it shall be done? how to (after user types in something) it gets assigned to text and will be accepted and emited to textChanged() ?
Attachments
Issue Links
- duplicates
-
QTBUG-125410 TextField.inputMethodHints flags are ignored on Android for Qt 6.7.0
-
- Closed
-
- is duplicated by
-
QTBUG-126754 [REG 6.6 → 6.7] Qt.ImhDigitsOnly and Qt.ImhFormattedNumbersOnly no longer trigger the numeric-only keypad when set to inputMethodHints property on Android.
-
- Closed
-