If anyone is interested you can force a closEditor event in this situation with a

Qt Code:
  1. setItemExpanded(oldItem,true);
To copy to clipboard, switch view to plain text mode 
Where oldItem is the previously created item left in edit mode.

Not very clean, but works for now none the less.