How to add a Search option in a ListView in Qml
Unsolved
QML and Qt Quick
-
@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 ?@KillerSmath yes
-
@danild
Can you be more specific ? -
I have one Listview and one TextFileld. We are inputting values to TextFiled, that value matched items are displayed in the Listview.
@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