I'm trying to make some kind of recursion. If you open P
then you can open P
again or do something else. And here is my problem:
I can't add same item twice.
while (*it) {
if ((*it)->text(0) == item->text(0)){
(*it)->setText(0,"Add_item");
(*it)->addChild(item);
}
}
Can I make a loop in QTree
?