Actually I emit a SIGNAL from the Thread and then receive it in the GUI class and add the Item to the treeWidget Like..
item->setText(0,some String Coming from theThread);
item->setText(0, other string from theThread);
item->setIcon (0, Icon );
QTreeWidgetItem *item = new QTreeWidgetItem(myTreeWidget);
item->setText(0,some String Coming from theThread);
item->setText(0, other string from theThread);
item->setIcon (0, Icon );
To copy to clipboard, switch view to plain text mode
This is a slot in which the string I set in TreeWidgetItem is coming from the Thread class which is stored in the LinkList and when a Item is added to the List in the Thread I emit the signal and update the treeWidget as above.
Bookmarks