Hi All,
i ve a treewidget. if i click right button of mouse, context menu is appearing, where there are two option, 1 is to add parent. and another 2 add childi. suppose i ve added 3 parent, parent1, parent2, parent3. if i need to add a child a new dialog ll be appear. where i can give the child name in a lienedit and one combo box to select the parent name. in my tree i've to update child1 naem as sub item under that parent.'
e.g i gave child1 to add under parent1
|--parent1
| |
| |-child1
| |-child2
|
|--parent2
| |
| |-child21
| |-child22
|
|--parent3
|
|
|
My problem is that how to insert the sub item, child under the perticular parent in the tree widget.
Below is my code.

QTreeWidgetItem *m_treelist;
QString parent, child;// these 2 are my inputs.
QList<QTreeWidgetItem *> temp;
temp = ui->treeWidget->findItems(parent , Qt::MatchExactly);
After that how ll i insert the child in that parent??? plz help me.