#QItemDelegate

QItemDelegate edit某个控件后把数据写回model

QWidget*TrackDelegate::createEditor(QWidget*parent,constQStyleOptionViewItem&option,constQModelIndex&index)const{if(index.column()==durationColumn){//QT...