[SailfishDevel] SilicaListView searchfield looses focus on search
Jesper Schmitz Mouridsen
jesper at schmitz.computer
Mon Mar 12 15:30:01 UTC 2018
mandag den 12. marts 2018 12.28.29 CET skrev Lukáš Karas:
> Try to setup `currentIndex` of `SilicaListView` to -1 explicitly...
> From my experience, when model of list view is updated, first
> delegated item
> steal focus from search field and keyboard is hidden...
>
> ```
> SilicaListView {
> id: listView
> model:listModel.proxyModel
> anchors.fill: parent
>
> currentIndex: -1 // otherwise currentItem will steal focus
>
> // ...
> }
> ```
>
> Lukas
Thanks that works :-)
>
>
> Dne pondělí 12. března 2018 12:11:10 CET Jesper Schmitz Mouridsen napsal(a):
>> Hi list.
>>
>> I'm making a searchable (play)list for vlc-remote's playlist
>> https://github.com/jsm222/harbour-vlc-remote/tree/cpp-playlist
>>
>> At the moment I'm using a timer to regain focus on the SearchField in
>> the header, since it looses focus on every single char input.
>> (After the ...
>
>
>
More information about the Devel
mailing list