Commit to QTreeWidget