View Full Version : Custom Model and Proxy Model

20th December 2010, 15:15
Hello, I have a custom model and a custom proxy model for it.

I have noticed that I the removeColumns virtual function does not propagate to my model

bool CustomProxy::removeColumns (int column, int count, const QModelIndex & parent)
// source model is a custom model derived from QAbstractTable
return sourceModel()->removeColumns(column, count, parent);

is this normal?
I would expect the proxy to propagate the removeColumns(...) to its source model by default

20th December 2010, 15:30
What is the base class of your proxy model? As far as I remember QSortFilterProxyModel does propagate.