[Qt-interest] How to: Accept only alphabets

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Tue Feb 9 10:10:58 CET 2010


Mohammed Imran B wrote on Tuesday, February 09, 2010 5:03 AM:

> Hi I want to make a QLineEdit accept only alphabets, i.e if any other
> key is pressed I should alert the user to enter only alphabets. 

http://doc.trolltech.com/4.6/qregexpvalidator.html

Cheers, Oliver

-- 
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22



More information about the Qt-interest-old mailing list