setModelData ( QWidget * editor, QAbstractItemModel * model, const QModelIndex & index ) const
C++ (Qt)...QLineEdit *le = qobject_cast<QLineEdit *>(editor);if (le) model->setData(index, le->text());...
C++ (Qt)QWidget* editor = QItemDelegate::createEditor(parent, option, index);