I would like to display a input text widget which accepts only numbers and the p,w,+,* characters to enter phone numbers only. I try the QLineEdit with setInputMask(QString::fromAscii("#")).
The problem is that when the line edit has focus and displays the blinking cursor, it is first in "abc" mode (i.e. multitap mode). So I can enter a letter, which is then deleted because it is not a number.
Is there a way to force the line edit in "123" mode? I mean how can I switch the FEP automatically in "123" when entering in the line edit?