I have a QTableView under which I am showing several different QSqlTableModel's (in succession, of course, not all at once). I am using a host of delegates to get the views the way that I want them.

I am presuming, as setItemDelegateForColumn() is a member of QTableView, not QSqlTableModel, that once I set a delegate, then change models, my delegate is still with the view, and it has to be cleared out/deleted/whatever to line up with the new model.

Am I correct in thinking this, or do the delegates actually stay with the model?