[SailfishDevel] Recommended replacement for a spinner?
Marcin Mielniczuk
marmistrzmar at gmail.com
Fri Nov 4 19:00:56 UTC 2016
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.
>
More information about the Devel
mailing list