<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br><br><hr id="stopSpelling">>Date: Fri, 14 May 2010 00:34:48 +0200<br>>From: rkmaemo@gmx.com<br>>Subject: RE: Qt question: How to automatically enable numeric input mode for a         field?<br>>To: scifi.guy@hotmail.com; maemo-developers@maemo.org<br>><br>
<title></title><style>
.ExternalClass p
{padding:0px;}
</style>><span class="ecxApple-style-span" style="font-size: small;">hi sudheer, as far as I know this is what its actually supposed to do , else it may be a bug.</span><BR>><BR>><span class="ecxApple-style-span" style="font-size: small;">btw this works only in QT4.6.</span><BR><a href="http://doc.trolltech.com/qt-maemo-4.6/qgraphicsitem.html#inputMethodHints">></a><span class="ecxApple-style-span" style="font-size: small;"><a href="http://doc.trolltech.com/qt-maemo-4.6/qgraphicsitem.html#inputMethodHints">http://doc.trolltech.com/qt-maemo-4.6/qgraphicsitem.html#inputMethodHints</a></span><BR>><BR>><BR>>ive tried this in a spin box and it works.<BR>><BR>>-<BR>>krk969<BR><br><BR>Hi Ram,<br><br><br>Here is the code that I am using. The hint is working fine for virtual keyboard, but I am looking for a physical keyboard solution. The physical keyboard input mode should automatically change to numeric for this field. What am I missing here?<br><br> lineEditCallingCardNumber = new QLineEdit(formLayoutWidget);<br> lineEditCallingCardNumber->setObjectName(QString::fromUtf8("lineEditCallingCardNumber"));<br> lineEditCallingCardNumber->setInputMethodHints(Qt::ImhDialableCharactersOnly);<br>                                            <br /><hr />Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. <a href='http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1' target='_new'>Learn more.</a></body>
</html>