QTreeWidgetItem *item = currentItem(); will give you current selected item.
you can read item text by
QString itemName = item->text(0);
you can read data like:
QString itemID = item->data(0,Qt::AccessibleDescriptionRole).toString( );