I don't understand. Do you have two views? One view where the user hides a row and another that shows the highlighted cells. If so you need to hide the row in the view that displays the proxy also.
Maybe something like this in your slot where you hide the row would work:
QModelIndexList list = view->selectionModel()->selectedRows();
view1->hideRow(index.row()); // view that displays the orgininal data
view2->hideRow(proxy->mapFromSource(queryModel->index(index.row(),0)).row()); // view displaying proxy model
}
highlightCells();
QModelIndexList list = view->selectionModel()->selectedRows();
foreach(QModelIndex index, list){
view1->hideRow(index.row()); // view that displays the orgininal data
view2->hideRow(proxy->mapFromSource(queryModel->index(index.row(),0)).row()); // view displaying proxy model
}
highlightCells();
To copy to clipboard, switch view to plain text mode
Or is the user hiding rows in the view showing the proxy?
Bookmarks