Custom Model and Proxy Model
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
Code:
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
Re: Custom Model and Proxy Model
What is the base class of your proxy model? As far as I remember QSortFilterProxyModel does propagate.