Unsolved In TextField not work Qt.ImhHiddenText
-
Hi!
I use in TextField:inputMethodHints: Qt.ImhHiddenText
but the text is not hidden. Please tell me why it does not work?
-
But it's work:
echoMode: TextInput.Password
Why not work:
inputMethodHints: Qt.ImhHiddenText
?
-
@Mihaill inputMethodHints: "The value is a bit-wise combination of flags" from https://doc.qt.io/qt-5/qml-qtquick-controls-textfield.html
I'm not a QML expert, but I guess you should keep other flags when adding Qt.ImhHiddenText, likeinputMethodHints: inputMethodHints | Qt.ImhHiddenText
Not sure about syntax though.
-
@jsulm said in In TextField not work Qt.ImhHiddenText:
Qt.ImhHiddenText
It's not work:
inputMethodHints: Qt.ImhDigitsOnly | Qt.ImhHiddenText
-
What do you want to do?
-
@Mihaill I have the same behavior. But according to these posts,
https://stackoverflow.com/questions/50551251/qml-textinput-ignoring-inputmethodhints
https://forum.qt.io/topic/59089/how-use-inputmethodhints-property/2,
it seems that inputMethodHints is dedicated to the virtual keyboard and not the text field . I didn't find any indication about this in the doc, or I have missed it.
I guess the solution is to useechoMode: TextInput.Password
-
Here is a link to the documentation.
https://doc.qt.io/qt-5/qml-qtquick-controls-textfield.html
This option works for me too. Just wondering why the documentation team isn't working. Perhaps this is a bug in Qt. -
@Mihaill said in In TextField not work Qt.ImhHiddenText:
Perhaps this is a bug in Qt
You can report it in the Qt bug tracker: https://bugreports.qt.io/secure/Dashboard.jspa
-
I created the topic , I hope after the developers will fix it.