PDA

View Full Version : Questions regarding Model-View Architecture



zgulser
14th March 2012, 16:03
Suppose I have a QSortFilterProxyModel and QAbstractItemModel for a particular list view which I set an QItemDelegate for it.

I want to ask questions about internal mechanism/function calls etc.

And you better know model is the source model of my filter model:)

1. Does filter model uses QAbstractItemModel::data(...) to filter or sort...

2. How the model let filter model to know the view needs to be updated? Via endInsertRows() for example?

3. If we set a delegate to a view like I did, it's called automatically and continuosly without triggering by filter model or model?


King Regards...