<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">&gt;Date: Fri, 14 May 2010 00:34:48 +0200<br>&gt;From: rkmaemo@gmx.com<br>&gt;Subject: RE: Qt question: How to automatically enable numeric input mode for  a         field?<br>&gt;To: scifi.guy@hotmail.com; maemo-developers@maemo.org<br>&gt;<br>

<title></title><style>
.ExternalClass p
{padding:0px;}
</style>&gt;<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>&gt;<BR>&gt;<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">&gt;</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>&gt;<BR>&gt;<BR>&gt;ive tried this in a spin box and it works.<BR>&gt;<BR>&gt;-<BR>&gt;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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lineEditCallingCardNumber = new QLineEdit(formLayoutWidget);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lineEditCallingCardNumber-&gt;setObjectName(QString::fromUtf8("lineEditCallingCardNumber"));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lineEditCallingCardNumber-&gt;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>