[Interest] numeric keyboard android/ios

Pierre-Yves Siret py.siret at gmail.com
Tue Dec 11 15:10:53 CET 2018


Le mar. 11 déc. 2018 à 14:38, Duane <duane.hebert at group-upc.com> a écrit :

> Setting a QLineEdit's input hint to digits only triggers a numeric
> keyboard.  With android, there is a "done" button on the bottom left.
> With ios, there is not a done button but something that appears to be a
> language selector.
>
> What is the best way to change this behavior so that on ios the "done"
> button is display?
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest


iOS has no native "Done" button on the numeric keyboard.
One way to do it could be to use a custom input view or an input accessory
https://developer.apple.com/design/human-interface-guidelines/ios/extensions/custom-keyboards/#custom-input-views
I guess you could also implement an input accessory lookalike directly in
Qt with no native code (position a widget above the keyboard). Not sure if
it's reasonable.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20181211/4fe7eee2/attachment.html>


More information about the Interest mailing list