you can overload data()
and setData()
functions from QStandardItemModel
, then when user tries to edit item your setData
will be called with Qt::EditRole
and there you can do your processing.
http://qt-project.org/doc/qt-5.0/qtcore/qabstractitemmodel.html#setData