On Fri, 2011-02-18 at 16:16 +0800, ext danny wrote:
> Hi all,
>
> In the MTF , we could set the content type for MTextEdit by:
>
> MTextEdit *edit = new MTextEdit();
> edit->setContentType(M::NumberContentType);
>
> I try to find it in the QML related documents, but failed at the end.
> So I come here to ask are there any methods to set the content type
> for the TextInput component in QML?
TextInput {
inputMethodHints: Qt.ImhDigitsOnly
}
should do it.
_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines