Unfortunately I don't have anything at handy. Start with reading QValidator detailed description. Then,