This helped a lot! Thanks!

Marcin

On 01.11.2016 21:59, Osmo Salomaa wrote:
> On 01.11.2016 21:15, Marcin Mielniczuk wrote:
>> In my app I'd like to present the user a spinner to let them choose an
>> arbitrary integer.
>>
>> What is a recommended replacement for this in Sailfish Silica? A
>> TextField with IntValidator? Or is there anything better?
>
> Add inputMethodHints and it should be good.
>
> TextField {
>     inputMethodHints: Qt.ImhDigitsOnly
> }
>
> Silica does offer a slider, but it's probably bad if the integer is
> indeed arbitrary, as you'd need to set a minimum and maximum, and a
> linear scale between them might not be appropriate.
>

_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to