[Qt-interest] QLineEdit: limit lenght of data to type

Murphy, Sean M. sean.murphy at gd-ais.com
Fri Feb 27 15:59:53 CET 2009


Like http://doc.trolltech.com/4.4/qlineedit.html#maxLength-prop ?

 

From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Miguel Cardenas
Sent: Friday, February 27, 2009 9:56 AM
To: qt-interest
Subject: [Qt-interest] QLineEdit: limit lenght of data to type

 

Hello list

Can anybody tell me if I can limit the length of data to a maximum fixed
size in a QLineEdit object? something like the text field in a html
form... Am making a database application and want to limit the string
lenght while typing the contents instead of cropping data or sending an
error dialog...

Thanks!

-- 
Miguel Cardenas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090227/9636fc2a/attachment.html 


More information about the Qt-interest-old mailing list