Dear All,
Yet another novice question

I have a subclass of QTreeWidget, called, QFileBrowser.
Qt Code:
  1. class QFileBrowser : public QTreeWidget
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. QFileBrowser(QWidget *parent);
  7. ~QFileBrowser();
  8. public slots:
  9. void onFilesFoldersSelected(QDir*, QStringList*);
  10. void onFileModeToggled(bool);
  11. private:
  12. QFileDialog::FileMode selMode;
  13. }
To copy to clipboard, switch view to plain text mode 
And in the main window, I have implemented a signal that is connected to the slot, onFilesFoldersSelected.
Qt Code:
  1. QObject::connect(this, SIGNAL(filesFoldersSelected(QDir*, QStringList*)), ui->twFileBrowser, SLOT(onFilesFoldersSelected(QDir*, QStringList*)));
To copy to clipboard, switch view to plain text mode 
Everything works fine and whenever, i am emitting a signal, I land in the slot. I also see that the pointers point to the data passed in the main window. However, when I try to set the tree as in below, I could see nothing ..
Qt Code:
  1. QList<QTreeWidgetItem *> itemList;
  2. QTreeWidgetItem treeItem((QTreeWidget *)this, *strList, 0);
  3. itemList.append(&treeItem);
  4. this->insertTopLevelItems(0, itemList); // I Expected this to do the job of inserting items in the tree
  5.  
  6. for (int i=0; i<strList->size(); i++)
  7. qDebug() << strList->at(i); // I can see that the strList has the strings that I am passing !!!
To copy to clipboard, switch view to plain text mode 

I am sure, im overlooking something small. Could anyone point me to that please !!!

Thanks !!
P.