I looking for an elegant way to filter ListView contents by text in TextInput (as in Android contacts).
My current suggestions:
1) Changing visible property of delegate.
That should have good perfomance, but ListView reserves space for empty delegates, and user see empty fields, need to hide non-visible delegates somehow.
2) Using two ListModel instances. First instance stores full set of data, second stores filtered subset, view connected to second. That method have high memory and processor time costs: each time when filter expression changes we need to clear second model then fill it again with new subset of data.
↧