How to add a Search option in a ListView in Qml
-
wrote on 14 Jun 2018, 12:30 last edited by
Hai..
I am looking code for Searching an item from the listview. -
wrote on 14 Jun 2018, 13:50 last edited by
@danild
Are you talking about find an item or apply a filter in the model of listview ? -
@danild
Are you talking about find an item or apply a filter in the model of listview ?wrote on 16 Jun 2018, 06:20 last edited by@KillerSmath yes
-
wrote on 16 Jun 2018, 20:39 last edited by
@danild
Can you be more specific ? -
wrote on 18 Jun 2018, 06:07 last edited by
I have one Listview and one TextFileld. We are inputting values to TextFiled, that value matched items are displayed in the Listview.
-
I have one Listview and one TextFileld. We are inputting values to TextFiled, that value matched items are displayed in the Listview.
wrote on 18 Jun 2018, 07:44 last edited by@danild
I recently faced the same problem in QML and found the following very convenient and easy to use solution, which I am currenly using:
https://github.com/oKcerG/SortFilterProxyModelYou can get most of the ideas therein also from the Qt example:
http://doc.qt.io/qt-5/qtquickcontrols-tableview-src-sortfilterproxymodel-cpp.html
4/6