Qt Code:
  1. ui.tree->currentItem()->text()
To copy to clipboard, switch view to plain text mode