PDA

View Full Version : Qtreewidget not displaying first item in a Qlist



Capton
17th June 2013, 15:35
I'm trying to display items in a QList on a QTreeWidget but no matter how hard i tried i observe that always the first item in the List is not inserted on the treeWidget. Please i need help. Below is my sample code



void Results::showResults (QList<Semester*>* sList){
for(int i=0; i<semList->count(); i++)
{
ui->treeWidget->addTopLevelItem(sList->at(i)->treeItem);
}
this->show ();
}


NB: every Semester item in the list has a treeItem member.