Qt World Summit: Submit your Presentation

TextInput and inputMethodHints

  • 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?

  • Seems to work with Android but not on a Linux machine.

  • @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.

Log in to reply