[Qt-interest] LineEdit accepting the first character as a small letter.

Steven Doerfler sgd-qt at lugaru.com
Fri Feb 12 15:33:59 CET 2010


Mohammed Imran B wrote:
> I have QLineEdit which always accepts the first character as a small
> letter.
>
> Is there any property through which I can set the first letter to be
> capital.

If you want to let the user type a lowercase letter and have Qt turn it
into an uppercase letter for you, take a look at inputMask
<http://doc.trolltech.com/4.6/qlineedit.html#inputMask-prop>.  A ">"
character in the input mask will handle this automatically.

Steven

-- 
Steven Doerfler
Lugaru Software, Ltd.
http://www.lugaru.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100212/350de556/attachment.html 


More information about the Qt-interest-old mailing list