Hello guys, I have a problem inserting items to a tree widget!

Some info about the (attached) screenshot now, 'list' is declared as
QList<QTreeWidgetItem*> list;
Also,
Qt Code:
  1. qDebug() << parnt->text(i-2);
  2. list.insert(i-2,parnt);
To copy to clipboard, switch view to plain text mode 
are inside a for loop, while
Qt Code:
  1. ui->treeWidget->addTopLevelItems(list)
To copy to clipboard, switch view to plain text mode 
is outside it.
When I output the parnt at 'i-2' as you can see, it does echo
Qt Code:
  1. 2011 May
  2. 2011 October
To copy to clipboard, switch view to plain text mode 

At the exact next line I insert the parnt to the 'list' at 'i-2' (the exact point I echoed parnt to the previous line)

But as you can see in the window besides it, it inserts '2011 May' 2 times, and I don't know why!

Also, mention that
Qt Code:
  1. insert.at(i-2)->addChild/addChilds(parnt);
To copy to clipboard, switch view to plain text mode 
crashes my application, so I cannot use them (I don't know why).

Thx in advance for any answer/help!error.png