first I set default input mask for line edit. but some one else wants to set a validator for it.
first I set default input mask for line edit. but some one else wants to set a validator for it.
counter-question:
Do these input mask and validator do the SAME kind of validation/verification?
If yes, i don't see any problem with clearing the input mask when someone sets the validator.
I'm a rebel in the S.D.G.
Tell us a little bit about your widget, so we can get the main idea of what you are doing.
I'm a rebel in the S.D.G.
my widget is a line edit. for example I set it with input mask "000.000.000.000" (this is a IP address inp ut mask). Then some one else wants to set a validator to the line edit and the validator could forbide user input numbers which are larget than 255. How can I write the QRegExpValidator rules under the exist input mask?
Well, tell me, what is the purpose of this input mask when it doesn't provide the complete validation of IP addresses?
I'm a rebel in the S.D.G.
just notice user this is a IP address and user no need to input dot in line edit.
Bookmarks