Hello everyone:

i use QAbstraceProxyModel subclass , QSplRelationalTableModel ,QItemDelegate SubClass, QTableView togather work,but when i edit cell,the QItemDelegate isn't valid,
then i debug it, find in QAbstrateItemView's private class have this code:

Qt Code:
  1. inline bool isIndexValid(const QModelIndex &index) const {
  2. return (index.row() >= 0) && (index.column() >= 0) && (index.model() == model);
  3. }
To copy to clipboard, switch view to plain text mode 
this is (index.model()==model) ==false

i want (index.model()==model) ==true,to evalid my delegate to work