PDA

View Full Version : Subclassing QSortFilterProxyModel



r366y
14th June 2006, 14:54
Hi folks!
I implemented a QSortFilterProxyModel sublcass and i overrode method bool filterAcceptsColumns(int source_column, const QModelIndex &source_parent) const,
all went well when i compiled my program but this method is never called.
Have i to override other methods?

I attached example files...
Thank you in advance. :D

jacek
14th June 2006, 15:27
It should be filterAcceptsColumn not filterAcceptsColumns.

r366y
14th June 2006, 16:26
Oops!
Thank you!!