PDA

View Full Version : QLineEdit check Input



raphaelf
17th August 2006, 14:21
Hi everybody,
How could i check if the value from a lineedit contains just ASCII alphanumeric characters like A-Z, a-z, 0-9??
setValidator should be the solution??But i havent found a example..
Where could i found a complete example?
thanks

jpn
17th August 2006, 14:32
QRegExpValidator (http://doc.trolltech.com/4.1/qregexpvalidator.html) (read carefully the detailed description part, there's an example...)