PDA

View Full Version : can we implement filter in model



prasad_N
8th July 2015, 14:20
I wanted to implement a filter in model itself, I don't want to use proxy model (I am having some performance issues with this).
So is there a way to implement filter() in model only, just like re implementing sort() function in model??

anda_skoa
8th July 2015, 17:39
Of course, the model has always full control over what it exposes through its API.

You implement rowCount(), columnCount() and data(), you decide which values to return.

Cheers,
_