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:
this is (index.model()==model) ==falseQt Code:
return (index.row() >= 0) && (index.column() >= 0) && (index.model() == model); }To copy to clipboard, switch view to plain text mode
index.model==>SourceModel
model==>ProxyModel
i want (index.model()==model) ==true,to evalid my delegate to work
thanks
Bookmarks