Hi, Thanks a lot, it works for me.
-- Best Regards, At 2011-02-19 01:16:41,"Rusty Lynch" <[email protected]> wrote: >You can use the 'inputMethodHints' property on TextInput to do what you >are looking for. For example... > >TextInput { >... all the normal prop settings ... >inputMethodHints: Qt.ImEmailCharactersOnly >} > >See the Qt documentation for Qt::InputMethodHints for a list of all the >hints. I'm not sure why the QML input components documentation does talk >about this, but the implementation is in place in the version of Qt in >MeeGo trunk. > >--rusty > >On 02/18/2011 01:28 AM, danny wrote: >> 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
_______________________________________________ MeeGo-dev mailing list [email protected] http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
