qt5 - inputMethodHints: Qt.ImhDigitsOnly not working -


as per documentation of textinput in qt documentations code below should work:

       textfield{                     width: 150                     height: 30                     placeholdertext: qstr("enter number")                     inputmethodhints: qt.imhdigitsonly                 } 

but on ubuntu 14.04 none of inputmethodhints working, atleast restricted flags. else face problem ? solutions ?

these hints input method editor, typically used input of languages such chinese or japanese. has nothing input can accepted field when you're not using input method editor.

yes, need validator. it's not workaround. it's solution.


Comments