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
Qt Code:
void Results::showResults (QList<Semester*>* sList){ for(int i=0; i<semList->count(); i++) { ui->treeWidget->addTopLevelItem(sList->at(i)->treeItem); } this->show (); }To copy to clipboard, switch view to plain text mode
NB: every Semester item in the list has a treeItem member.
Bookmarks