I have also tried the following:

Qt Code:
  1. bool RootModel::setData ( const QModelIndex & index, const QVariant & value, int role)
  2. {
  3. if (!index.isValid())
  4. return false;
  5.  
  6. if (role != Qt::EditRole)
  7. return false;
  8.  
  9. RootItem *item = getRootItem(index);
  10. item->setData(index.column(),value);
  11. emit dataChanged(index, index);
  12. return true;
  13. }
To copy to clipboard, switch view to plain text mode 

Where item->setData() changes the value held in the item. Again if I click on an item it will reflect the change (on on another window) but not otherwise.