TextInput的属性inputMask : string。我才看的,不知道对不对。
inputMask : string
Allows you to set an input mask on the TextInput, restricting the allowable text inputs. See QLineEdit::inputMask for further details, as the exact same mask strings are used by TextInput.