I am making one simple program of in which i have two arrays. I want to insert first array in the first column of the child of treeWidget and second array in the second column of the treeWidget. First array is inserted successfully. Now i want to insert second array in the same index of second column. Like this
object
//First Column //Second Column
A 1
B 2
C 3
Object is the parent. Coding:
QTreeWidget* item= new QTreeWidgetItem();
QList<QTreeWidgetItem*> items_first_Column;
QList<QTreeWidgetItem*> items_Second_Column;
item->setText(0,"Object");
item->addChildren(items_first_column);
Can anyone please tell me how i can insert second column in this.