PDA

View Full Version : How to create a validator



Cucus
3rd August 2011, 21:41
Hi,

I don't know how a validator works and I have to add one some complex :S:

+/-xxx.xx, +/-xxx.xx, +/-xxx.xx where x are numbers.


Besides the official documentation is there something usefull?
Thanks

Lykurg
4th August 2011, 07:47
Well I would say that that is an easy one;) Have a look at QRegExpValidator and use a regular expression on testing the string. The documentation is good on how reg exp works but if not, you will find a lot of stuff in the net.