How to validate QlineEdit in order to allow to write a string only or allow to write numbers only
|September 29, 2014||Posted by forumadmin under TechQns||
I have a
I want when the user enters data in that field allows only to enter the numbers, or allows only to enter the text string, and so on.
I know the method to do that and that by using
void QLineEdit::setValidator (const QValidator * v), but I don’t know how to use this method?
|Asked By – Lion King||Read Answers|