sorry my previous message was sent before I finished typing... anyways
use input method hints.. http://doc.trolltech.com/4.6/qt.html#InputMethodHint-enum http://doc.trolltech.com/4.6/qt.html#InputMethodHint-enum something like this ----- Original Message ----- From: Sudheer K. Sent: 05/13/10 11:04 PM To: Maemo Dev Mailing List Subject: Qt question: How to automatically enable numeric input mode for a field? Hi, I want to create a phone number field (QLineEdit) in my configuration widget. User can enter numbers and '+' or 'p' characters in the field. The key thing is I don't want the users to use the Fn key everytime they have to edit the number. Application should automatically enable number entry and allow users to enter numbers only. Users can use Fn key to enter '+' or 'p' if needed. The expected functionality is similar to adding a new phone number for a contact in addressbook. How can I do this in Qt? Regards, Sudheer ----------------------------------------------------------------- The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. Get busy. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
_______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers