Quote Originally Posted by jesse_mark View Post
i though vaidatores are just ensure the input is limited depending on what Regexp u have , and return (valid, intermediate or invalid). but how i can make it fix the text entered to the format i want??
Both validate() and fixup() take a non-const reference to the text they process so you can actually modify it to return an accepted value. Take a look at the docs of QValidator::fixup().