frank100
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
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