[maemo-developers] Qt question: How to automatically enable numeric input mode for a field?
From: Sudheer K. scifi.guy at hotmail.comDate: Fri May 14 05:49:27 EEST 2010
- Previous message: Qt question: How to automatically enable numeric input mode for a field?
- Next message: Undefined reference error
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>Date: Fri, 14 May 2010 01:04:19 +0200 >From: rkmaemo at gmx.com >Subject: RE: Qt question: How to automatically enable numeric input mode for a field? >To: scifi.guy at hotmail.com; maemo-developers at maemo.org > >have you tried this hint ? ( this worked for the spin box, I could use the hardware keyboard without pressing Fn ) > >Qt::ImhDigitsOnly > >Qt::ImhFormattedNumbersOnly didnt work for me , for the spin box , I needed a dot (.) , since I was using a double spinbox. I'll be >raising a bug for that, perhaps even the hint you are using below has similar issues. > >WHen I spoke to some QT team members , what they told me was this should be done by default for some widgets, for example the spinbox >there >shouldnt be a need to explicitly hint, it should be default, so it seems there could be issues to iron out here. > >try using the above "working" hint and see how it goes. > >-krk969 Ram, I have tried Qt::ImhDigitsOnly and it works as expected. It will switch the physical and virtual keyboard to numeric input only. I guess I will use it at this moment (I don't really need p and + characters in the field). Thanks for your help. Regards, Sudheer _________________________________________________________________ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100513/183b130b/attachment.htm>
- Previous message: Qt question: How to automatically enable numeric input mode for a field?
- Next message: Undefined reference error
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]