I notice the insert key does nothing at runtime for an entry field with an inputMask It's always in overwrite mode. Is this normal ?
I notice the insert key does nothing at runtime for an entry field with an inputMask It's always in overwrite mode. Is this normal ?
Yes, that's normal. Use validators for validating the input in a different way than the input mask does.
J-P Nurmi
vieraci (26th July 2007)
Validators don't Format.
What I want to do is make it more foolproof for users to input data, like capitalize the first character, format phone numbers etc. I wrote some custom formatting and validating classes for Visualage C++, I think I'll have to port the formatting parts to Qt.
Actually, validators can do some little "formatting" too. See QValidator::fixup().
J-P Nurmi
vieraci (26th July 2007)
After I deleted the inputMask the insert key STILL does nothing.
and this is normal ??
Oh, indeed. Seems QLineEdit doesn't have that kind of functionality. I'm Sorry if I mislead you.
J-P Nurmi
Porting my old code is looking like the way to go then. I don't want to, but...
Bookmarks