Sory for 2 posts in row but I don't know how edit last one...
The thing I was missing is

Qt Code:
  1. void QStandardItem::setChild(int row, int column, QStandardItem * item)
To copy to clipboard, switch view to plain text mode 

function