Thank you very much squidge.
I guess i didn't totally take in or understand what you posted the first time.
Here is my new code that runs fine.
QList<QString> ulist;
for(int x=0; x<ui->treeWidget->topLevelItemCount(); x++)
{
item = ui->treeWidget->topLevelItem(x);
if(item->text(0) != "")
{
ulist.append(item->text(0));
}
}
QList<QString> ulist;
QTreeWidgetItem *item;
for(int x=0; x<ui->treeWidget->topLevelItemCount(); x++)
{
item = ui->treeWidget->topLevelItem(x);
if(item->text(0) != "")
{
ulist.append(item->text(0));
}
}
To copy to clipboard, switch view to plain text mode
I can't believe i never noticed that.
Thanks again.
Bookmarks