But how to combine with setMask("000.000.000.000;")?
But how to combine with setMask("000.000.000.000;")?
You can't. But the validator does almost the same job, especially if you implement its fixup method.
Hi I've the same problem...I've to implement a dialog like WinXp TCP/IP Properties of Network Connections->MyConnection Properties:
How use IP4Validator with that kind of masks (IP Address and Subnet Mask) and how to implemet them?
Last edited by fruzzo; 7th May 2008 at 15:41.
You can cheat by having four frameless line edits and three labels grouped in a horizontal layout and with overriden key events to move to the next group when the previous one is filled or when arrow keys are used. That's probably what the mentioned dialog does, too.
That you can change an invalid entry to a valid entry. For instance decimal point in some countries is the dot character and in others it is comma. Thanks to fixup you can detect a comma instead of a dot (or the other way round) and change it to something you consider valid.
You can do there whatever you like.
Bookmarks