Have done a work around.
item is the QTreeWidgetItem selected
while(upperParent->parent())
upperParent = upperParent->parent();
if(upperParent==TreeWidget->topLevelItem(0))
......
else if (upperParent==TreeWidget->topLevelItem(1))
QTreeWidgetItem *upperParent = item;
while(upperParent->parent())
upperParent = upperParent->parent();
if(upperParent==TreeWidget->topLevelItem(0))
......
else if (upperParent==TreeWidget->topLevelItem(1))
To copy to clipboard, switch view to plain text mode
This lets me get back up to the parent of any item selected and attach different outcomes dependent on the child choice
Cheers
Bookmarks