TextInput and inputMethodHints
QML and Qt Quick
3
Posts
2
Posters
1.1k
Views
2
Watching
-
wrote on 9 May 2015, 17:26 last edited by
I'm trying to set up inputMethodHints to Qt.ImhFormattedNumbersOnly but I haven't got any effect. Have I to enable it in some way?
-
wrote on 10 May 2015, 08:06 last edited by
Seems to work with Android but not on a Linux machine.
-
wrote on 10 May 2015, 13:41 last edited by
@mrdebug Maybe you missunderstood what QInputMethod is actually good for? The documentation says:
QInputMethod is used by the text editors for integrating to the platform text input methods and more commonly by application views for querying various text input method-related information like virtual keyboard visibility and keyboard dimensions.
It's not meant to do input filtering / validation.
1/3