When exactly do you want to retrieve the data? At a mouse click on the item? Or as a result of some other event?

Either way, you must call QTreeWidgetItem::data(column, role).
The role must be Qt::UserRole.
This function will give you a QVariant, and you can use QVariant::toMap to retrieve the QMap.