Thanks a lot
I created two instances of the QTreeWidget and modified my code.
It was worth learning for newbie like myself.
I will use this forum again and hope to learn more