Unsolved Validator in TextField
-
Hi,
I want to affect dynamic validator on TextField as you can see on the code below:
validator: RegExpValidator{regExp: /^[0-9]{0,/ + (displaySaisie.nbValeurs-2) + /},{1,1}[0-9]{2}/}
I've the error log: "Unable to assign QString to QRegExp".
Have you a solution ?
-
Hi and welcome to devnet,
AFAIK, you can't do it like that. RegExpValidator expects a JS regular expression which is not what you are passing by doing that.