validating an IP address by setting mask and using regular expression and validator.
But most important is that it should shows the IP address dialog as ( . . . ) not like this000.000.000.000.
validating an IP address by setting mask and using regular expression and validator.
But most important is that it should shows the IP address dialog as ( . . . ) not like this000.000.000.000.
Have you tried searching the forum?
Hi, here from my firefox bookmark: title "Ip Address Validation"
http://www.qtcentre.org/forum/f-qt-p...tion-6228.html
Hi,
i have gone through it but i couldnt find the solution .
i did this thing by first setting mask then creating a regular exp and after that setting the validator. but it would accept the data but shows the ip dialog as 000.000.000.000 and i need that it must be ( . . . ).
hey hi, can u send me the regular expression for an IP address which takes values from 0 to 255.
thanks
What's wrong with the link you were given?
hi ,that was not working. the line edit box couldnt accept the regular expression when i used it with input mask.
can u tell me the other way of doing this?
means by deriving a class and use a function to validate an ip address.
please help me out.
thanks
Well... you can't use it with an input mask. But you can validate the address without dots and insert them using fixup.
hi, can u write a little bit code which shows how to use fix up.
i hav created a regular expression without using input mask . it can accept all right nos. but for example when i write 32 then it cant take any no. it is right as it wait for .(dot) to put on but is there any way that when i write any no. whete one , two or max. three digits then it shows a message that put dot now, so that user know that now its the time to put dot.
please help me out.
Subclass QValidator and reimplement both validate and fixup. Fixup can work in such a way that if you enter four digits in a row, it places a dot before the last digit.
hi, can u write a little bit code for how to subclass Qvalidator and how to use Fix up and validate for an line edit box which takes valid IP address.
please help me out
Bookmarks