[Qt-interest] QSortFilterProxyModel Question

Girish Ramakrishnan girish at forwardbias.in
Mon Sep 21 07:06:06 CEST 2009


Hi,

Willy P wrote:
> Everything works fine b/c I've modified nothing from the parent class.
>  But I'm noticing that the values for QModelIndex::internalId are
> crazy.  Is the QSortFilterProxyModel keeping track of data itself?  

QSortFilterProxyModel could probably have been designed to keep the same
internalId as the source model, but the fact is QSortFilterProxyModel
does not do that :) It maintains a data structure of it's own to keep
track of nodes in the source model and the internal ids reference that
data structure.

Girish



More information about the Qt-interest-old mailing list