Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
In TextField not work Qt.ImhHiddenText
I use in TextField:
but the text is not hidden. Please tell me why it does not work?
But it's work:
Why not work:
@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, like
inputMethodHints: inputMethodHints | Qt.ImhHiddenText
Not sure about syntax though.
It's not work:
inputMethodHints: Qt.ImhDigitsOnly | Qt.ImhHiddenText
What do you want to do?
Gojir4 last edited by Gojir4
@Mihaill I have the same behavior. But according to these posts,
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 use
Here is a link to the documentation.
This option works for me too. Just wondering why the documentation team isn't working. Perhaps this is a bug in Qt.
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.