Hi,

Does "validator" work for you ?
http://doc.qt.nokia.com/4.7/qml-textinput.html#validator-prop
TextInput{
     validator: IntValidator{bottom: 11; top: 31;}
     focus: true
 }

/zhu

2011/2/18 danny <tornad...@163.com>:
> 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?
>
> Thanks very much in advance.
> --
>  Best Regards,
>
>
>
>
> _______________________________________________
> MeeGo-dev mailing list
> MeeGo-dev@meego.com
> http://lists.meego.com/listinfo/meego-dev
> http://wiki.meego.com/Mailing_list_guidelines
>
_______________________________________________
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines

Reply via email to