Hi, Thanks very much for your quick reply, but I thought it's not what I want.
The content type could also be such as M::EmailContentType or M::PhoneNumberContentType etc., not only the basic type. -- Best Regards, At 2011-02-18 16:54:33,zhu <[email protected]> wrote: >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 <[email protected]>: >> 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 >> [email protected] >> http://lists.meego.com/listinfo/meego-dev >> http://wiki.meego.com/Mailing_list_guidelines >>
_______________________________________________ MeeGo-dev mailing list [email protected] http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
